Mitsuba Renderer  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent Struct Reference

Describes the beginning or end of a primitive when projected onto a certain dimension. More...

#include <mitsuba/render/gkdtree.h>

Public Types

enum  EEventType { EEdgeEnd = 0, EEdgePlanar = 1, EEdgeStart = 2 }
 Possible event types. More...
 

Public Member Functions

 EdgeEvent ()
 Dummy constructor. More...
 
 EdgeEvent (uint16_t type, int axis, float pos, IndexType index)
 Create a new edge event. More...
 
std::string toString () const
 Return a string representation. More...
 

Public Attributes

float pos
 Plane position. More...
 
IndexType index
 Primitive index. More...
 
unsigned int type:2
 Event type: end/planar/start. More...
 
unsigned int axis:2
 Event axis. More...
 

Detailed Description

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
struct mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent

Describes the beginning or end of a primitive when projected onto a certain dimension.

Member Enumeration Documentation

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
enum mitsuba::GenericKDTree::EdgeEvent::EEventType

Possible event types.

Enumerator
EEdgeEnd 
EEdgePlanar 
EEdgeStart 

Constructor & Destructor Documentation

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent::EdgeEvent ( )
inline

Dummy constructor.

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent::EdgeEvent ( uint16_t  type,
int  axis,
float  pos,
IndexType  index 
)
inline

Create a new edge event.

Member Function Documentation

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
std::string mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent::toString ( ) const
inline

Return a string representation.

Member Data Documentation

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
unsigned int mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent::axis

Event axis.

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
IndexType mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent::index

Primitive index.

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
float mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent::pos

Plane position.

template<typename AABBType, typename TreeConstructionHeuristic, typename Derived>
unsigned int mitsuba::GenericKDTree< AABBType, TreeConstructionHeuristic, Derived >::EdgeEvent::type

Event type: end/planar/start.


The documentation for this struct was generated from the following file: