Open CASCADE Technology  6.9.0
Public Member Functions

Voxel_Selector Class Reference

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

#include <Voxel_Selector.hxx>

Public Member Functions

 Voxel_Selector ()
 An empty constructor. More...
 
 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. More...
 
void Init (const Handle< V3d_View > &view)
 Initializes the selector by a view, where the user selects the voxels. More...
 
void SetVoxels (const Voxel_BoolDS &voxels)
 Defines the voxels (1bit). More...
 
void SetVoxels (const Voxel_ColorDS &voxels)
 Defines the voxels (4bit). More...
 
void SetVoxels (const Voxel_ROctBoolDS &voxels)
 Defines the voxels (1bit recursive splitting). More...
 
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. More...
 

Detailed Description

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

Constructor & Destructor Documentation

Voxel_Selector::Voxel_Selector ( )

An empty constructor.

Voxel_Selector::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.

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 
)

Detects a voxel under the mouse cursor.

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

Initializes the selector by a view, where the user selects the voxels.

void Voxel_Selector::SetVoxels ( const Voxel_BoolDS voxels)

Defines the voxels (1bit).

void Voxel_Selector::SetVoxels ( const Voxel_ColorDS voxels)

Defines the voxels (4bit).

void Voxel_Selector::SetVoxels ( const Voxel_ROctBoolDS voxels)

Defines the voxels (1bit recursive splitting).


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