1#ifndef RAY_FILE_INSTANCE_INCLUDED
2#define RAY_FILE_INSTANCE_INCLUDED
19 static std::string
Directive(
void ){
return "ray_file_instance"; }
28 void _write( std::ostream &stream )
const;
29 void _read( std::istream &stream );
31 std::string
name(
void )
const {
return "file instance"; }
Definition: GLSLProgram.h:33
Definition: fileInstance.h:11
bool processFirstIntersection(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: fileInstance.cpp:37
int processAllIntersections(const Util::Ray3D &ray, const Util::BoundingBox1D &range, const RayIntersectionFilter &rFilter, const RayIntersectionKernel &rKernel, ShapeProcessingInfo spInfo, unsigned int tIdx) const
Definition: fileInstance.cpp:42
bool isInside(Util::Point3D p) const
Definition: fileInstance.cpp:49
void updateBoundingBox(void)
Definition: fileInstance.cpp:33
static std::string Directive(void)
Definition: fileInstance.h:19
void drawOpenGL(GLSLProgram *glslProgram) const
Definition: fileInstance.cpp:51
int _fileIndex
Definition: fileInstance.h:13
void initOpenGL(void)
Definition: fileInstance.cpp:35
const File * _file
Definition: fileInstance.h:16
void _write(std::ostream &stream) const
Definition: fileInstance.cpp:13
void init(const class LocalSceneData &data)
Definition: fileInstance.cpp:24
FileInstance(void)
Definition: fileInstance.cpp:11
void processOverlapping(const Filter &filter, const Kernel &kernel, ShapeProcessingInfo spInfo) const
Definition: fileInstance.cpp:47
void _read(std::istream &stream)
Definition: fileInstance.cpp:19
std::string name(void) const
Definition: fileInstance.h:31
std::function< void(const ShapeProcessingInfo &, const Shape &) > Kernel
Definition: shape.h:162
std::function< bool(double) > RayIntersectionFilter
Definition: shape.h:163
std::function< ShapeProcessingInfo::ProcessingType(const ShapeProcessingInfo &, const Shape &) > Filter
Definition: shape.h:161
std::function< void(const ShapeProcessingInfo &, const class RayShapeIntersectionInfo &) > RayIntersectionKernel
Definition: shape.h:164
Definition: geometry.h:345
Definition: geometry.h:299