Nori

GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::EdgeEvent Struct Reference

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

#include <gkdtree.h>

List of all members.

Public Types

enum  EEventType { EEdgeEnd = 0, EEdgePlanar = 1, EEdgeStart = 2 }
 

Possible event types.

More...

Public Member Functions

 EdgeEvent ()
 Dummy constructor.
 EdgeEvent (uint16_t type, int axis, float pos, IndexType index)
 Create a new edge event.

Public Attributes

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

Detailed Description

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
struct GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::EdgeEvent

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

Definition at line 1119 of file gkdtree.h.


Member Enumeration Documentation

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

Possible event types.

Enumerator:
EEdgeEnd 
EEdgePlanar 
EEdgeStart 

Definition at line 1121 of file gkdtree.h.


Constructor & Destructor Documentation

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::EdgeEvent::EdgeEvent ( ) [inline]

Dummy constructor.

Definition at line 1128 of file gkdtree.h.

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

Create a new edge event.

Definition at line 1131 of file gkdtree.h.


Member Data Documentation

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

Event axis.

Definition at line 1141 of file gkdtree.h.

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

Primitive index.

Definition at line 1137 of file gkdtree.h.

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

Plane position.

Definition at line 1135 of file gkdtree.h.

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

Event type: end/planar/start.

Definition at line 1139 of file gkdtree.h.


The documentation for this struct was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines