36 static std::string
Directive(
void ){
return "shape_cone"; }
45 void _write( std::ostream &stream )
const;
46 void _read( std::istream &stream );
48 std::string
name(
void )
const {
return "cone"; }
Definition: GLSLProgram.h:33
void drawOpenGL(GLSLProgram *glslProgram) const
Definition: cone.todo.cpp:79
std::string name(void) const
Definition: cone.h:48
Util::Point3D center
Definition: cone.h:27
int _materialIndex
Definition: cone.h:21
double radius
Definition: cone.h:33
void _write(std::ostream &stream) const
Definition: cone.cpp:20
static std::string Directive(void)
Definition: cone.h:36
GLuint _elementBufferID
Definition: cone.h:18
void init(const class LocalSceneData &data)
Definition: cone.todo.cpp:14
void _read(std::istream &stream)
Definition: cone.cpp:15
bool isInside(Util::Point3D p) const
Definition: cone.todo.cpp:70
GLuint _vertexBufferID
Definition: cone.h:15
Cone(void)
Definition: cone.cpp:13
void updateBoundingBox(void)
Definition: cone.todo.cpp:28
double height
Definition: cone.h:30
const class Material * _material
Definition: cone.h:24
bool processFirstIntersection(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: cone.todo.cpp:47
int processAllIntersections(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: cone.todo.cpp:59
void initOpenGL(void)
Definition: cone.todo.cpp:36
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