24 static std::string
Directive(
void ){
return "shape_box"; }
33 void _write( std::ostream &stream )
const;
34 void _read( std::istream &stream );
36 std::string
name(
void )
const {
return "box"; }
Definition: GLSLProgram.h:33
Util::Point3D length
Definition: box.h:21
static std::string Directive(void)
Definition: box.h:24
bool isInside(Util::Point3D p) const
Definition: box.todo.cpp:69
Box(void)
Definition: box.cpp:13
void updateBoundingBox(void)
Definition: box.todo.cpp:27
std::string name(void) const
Definition: box.h:36
void init(const class LocalSceneData &data)
Definition: box.todo.cpp:13
int _materialIndex
Definition: box.h:12
void _write(std::ostream &stream) const
Definition: box.cpp:20
Util::Point3D center
Definition: box.h:18
void _read(std::istream &stream)
Definition: box.cpp:15
bool processFirstIntersection(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: box.todo.cpp:46
void initOpenGL(void)
Definition: box.todo.cpp:35
void drawOpenGL(GLSLProgram *glslProgram) const
Definition: box.todo.cpp:78
const class Material * _material
Definition: box.h:15
int processAllIntersections(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: box.todo.cpp:58
std::function< bool(double) > RayIntersectionFilter
Definition: shape.h:163
std::function< void(const ShapeProcessingInfo &, const class RayShapeIntersectionInfo &) > RayIntersectionKernel
Definition: shape.h:164
Definition: geometry.h:345
Definition: geometry.h:299