26 static std::string
Directive(
void ){
return "shape_torus"; }
44 void _write( std::ostream &stream )
const;
45 void _read( std::istream &stream );
47 std::string
name(
void )
const {
return "torus"; }
Definition: GLSLProgram.h:33
std::function< bool(double) > RayIntersectionFilter
Definition: shape.h:163
std::function< void(const ShapeProcessingInfo &, const class RayShapeIntersectionInfo &) > RayIntersectionKernel
Definition: shape.h:164
static std::string Directive(void)
Definition: torus.h:26
std::string name(void) const
Definition: torus.h:47
int processAllIntersections(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: torus.todo.cpp:56
Torus(void)
Definition: torus.cpp:13
void initOpenGL(void)
Definition: torus.todo.cpp:33
void drawOpenGL(GLSLProgram *glslProgram) const
Definition: torus.todo.cpp:77
void _read(std::istream &stream)
Definition: torus.cpp:15
double iRadius
Definition: torus.h:32
int _materialIndex
Definition: torus.h:19
bool processFirstIntersection(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: torus.todo.cpp:44
GLuint _elementBufferID
Definition: torus.h:16
GLuint _vertexBufferID
Definition: torus.h:13
Util::Point3D center
Definition: torus.h:29
void updateBoundingBox(void)
Definition: torus.todo.cpp:26
double oRadius
Definition: torus.h:35
void init(const class LocalSceneData &data)
Definition: torus.todo.cpp:13
void _write(std::ostream &stream) const
Definition: torus.cpp:20
bool isInside(Util::Point3D p) const
Definition: torus.todo.cpp:68
const class Material * _material
Definition: torus.h:22
Definition: geometry.h:345
Definition: geometry.h:299