Open CASCADE Technology 6.6.0
Public Member Functions
Voxel_Selector Class Reference

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

#include <Voxel_Selector.hxx>

Public Member Functions

 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

Voxel_Selector::Voxel_Selector ( )
Voxel_Selector::Voxel_Selector ( const Handle< V3d_View > &  view)

Member Function Documentation

Standard_Boolean Voxel_Selector::Detect ( const Standard_Integer  winx,
const Standard_Integer  winy,
Standard_Integer ix,
Standard_Integer iy,
Standard_Integer iz 
)
void Voxel_Selector::Init ( const Handle< V3d_View > &  view)
void Voxel_Selector::SetVoxels ( const Voxel_ROctBoolDS voxels)
void Voxel_Selector::SetVoxels ( const Voxel_ColorDS voxels)
void Voxel_Selector::SetVoxels ( const Voxel_BoolDS voxels)

The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines