Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
Voxel_Selector Class Reference

Detects voxels in the viewer 3d under the mouse cursor.

#include <Voxel_Selector.hxx>

Public Member Functions

DEFINE_STANDARD_ALLOC Voxel_Selector ()
 An empty constructor.

 Voxel_Selector (const Handle< V3d_View > &view)
 A constructor of the selector,
which initializes the classes
by a view, where the user selects the voxels.

void Init (const Handle< V3d_View > &view)
 Initializes the selector by a view,
where the user selects the voxels.

void SetVoxels (const Voxel_BoolDS &voxels)
 Defines the voxels (1bit).

void SetVoxels (const Voxel_ColorDS &voxels)
 Defines the voxels (4bit).

void SetVoxels (const Voxel_ROctBoolDS &voxels)
 Defines the voxels (1bit recursive splitting).

Standard_Boolean Detect (const Standard_Integer winx, const Standard_Integer winy, Standard_Integer &ix, Standard_Integer &iy, Standard_Integer &iz)
 Detects a voxel under the mouse cursor.


Constructor & Destructor Documentation


Member Function Documentation


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