130 NodeData(
void) : addr(0) {}
137 void getFromIndex (
S32 idx);
141 void growParentBox ();
147 void drawNodes (GLContext* gl,
bool onlyChildren);
154 void drawBox (GLContext* gl,
const NodeData &node,
U32 abgr);
160 void drawRays (GLContext* gl,
U32 abgr);
165 void drawPrimitives (GLContext* gl);
169 void drawPathInfo (GLContext* gl);
173 void setColorMapping ();
178 void prepareTreeData (NodeData node);
184 void addBoxQuads (
const AABB &box, Array<Vec4f> &
buffer);
187 void splitNode (
const NodeData& currNode,
S32& leftAdd,
S32& rightAdd, AABB& leftBox, AABB& rightBox, SplitInfo& split);
191 CudaKDTree* m_kdtree;
192 Array<NodeData> m_nodeStack;
198 SplitInfo m_nodeSplit;
~VisualizationKDTree(void)
Destructor.
Class for the visualization.
VisualizationKDTree(CudaKDTree *kdtree, Scene *scene, const Array< AABB > &emptyBoxes, const RayBuffer *rays=NULL, Buffer *visibility=NULL)
Constructor.
void draw(GLContext *gl, CameraControls &camera)
The method used to draw the current state of visualization to the OpenGL context. ...
Class for the BVH visualization.
void moveToSibling()
Sets the node to be visualized to be the sibling of the currently visualized node.
CUdevice int ordinal char int CUdevice dev CUdevprop CUdevice dev CUcontext ctx CUcontext ctx CUcontext pctx CUmodule const void image CUmodule const void fatCubin CUfunction CUmodule const char name void p CUfunction unsigned int bytes CUtexref pTexRef CUtexref CUarray unsigned int Flags CUtexref int CUaddress_mode am CUtexref unsigned int Flags CUaddress_mode CUtexref int dim CUarray_format int CUtexref hTexRef CUfunction unsigned int numbytes CUfunction int float value CUfunction int CUtexref hTexRef CUfunction int int grid_height CUevent unsigned int Flags CUevent hEvent CUevent hEvent CUstream unsigned int Flags CUstream hStream GLuint bufferobj unsigned int CUdevice dev CUdeviceptr unsigned int CUmodule const char name CUdeviceptr unsigned int bytesize CUdeviceptr dptr void unsigned int bytesize void CUdeviceptr unsigned int ByteCount CUarray unsigned int CUdeviceptr unsigned int ByteCount CUarray unsigned int const void unsigned int ByteCount CUarray unsigned int CUarray unsigned int unsigned int ByteCount void CUarray unsigned int unsigned int CUstream hStream const CUDA_MEMCPY2D pCopy CUdeviceptr const void unsigned int CUstream hStream const CUDA_MEMCPY2D CUstream hStream CUdeviceptr unsigned char unsigned int N CUdeviceptr unsigned int unsigned int N CUdeviceptr unsigned int unsigned short unsigned int unsigned int Height CUarray const CUDA_ARRAY_DESCRIPTOR pAllocateArray CUarray const CUDA_ARRAY3D_DESCRIPTOR pAllocateArray unsigned int CUtexref CUdeviceptr unsigned int bytes CUcontext unsigned int CUdevice device GLenum texture GLenum GLuint buffer
Cuda friendly KDTree representation.
void moveToRight()
Sets the node to be visualized to be the right child of the currently visualized node.
void moveUp()
Sets the node to be visualized to be the predecesor of the currently visualized node on the set path...
Visualisation framework abstract class above BVH/KDTree visualisations.
Ray buffer class. Stores rays.
FW::String getAxisName(void)
virtual bool handleEvent(const Window::Event &ev)
Handles visualization events - key commands influencing the output.
void moveToLeft()
Sets the node to be visualized to be the left child of the currently visualized node.
void moveDown()
Sets the node to be visualized to be the succesor of the currently visualized node on the set path...
void moveToParent()
Sets the node to be visualized to be the parent of the currently visualized node. ...