Open CASCADE Technology 6.6.0
|
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. |
Voxel_Selector::Voxel_Selector | ( | ) |
Voxel_Selector::Voxel_Selector | ( | const Handle< V3d_View > & | view | ) |
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 | ) |