|
RobinTrace
|
Class template implementing the specialized lparts for reflective shape parts. More...
#include <shape_part.h>
Public Member Functions | |
| shape_reflect_part (T _shp) | |
Constructor with initialization to the shape _shp. More... | |
| virtual void | apply (bun &b) override |
Apply reflective shape lpart operations to the ray bundle b. More... | |
| virtual void | intersect (bun &b) override |
Apply only the eventual intersection of the lpart with ray bundle b. More... | |
| virtual std::unique_ptr< lpart > | clone () const override |
| Obtain a copy of the lpart. | |
| virtual bool | is_transfer () override |
| Is the part a transfer? | |
| virtual bool | is_renderable () override |
| Is the part renderable? | |
Public Attributes | |
| T | shp |
| The shape of the part. More... | |
Private Member Functions | |
| virtual std::string | print_str () const override |
| String for printing the object. | |
Class template implementing the specialized lparts for reflective shape parts.
|
inline |
Constructor with initialization to the shape _shp.
| _shp | Initial shape of the part. |
|
inlineoverridevirtual |
Apply reflective shape lpart operations to the ray bundle b.
| b | Ray bundle to apply the part's operations to. |
The following operations are applied in succession to all rays in the bundle:
Implements lpart.
|
inlineoverridevirtual |
Apply only the eventual intersection of the lpart with ray bundle b.
This is used typically for rendering the part.
Implements lpart.
| T shape_reflect_part< T >::shp |
The shape of the part.
T is of type shape.