Open CASCADE Technology 6.6.0
Public Member Functions | Protected Member Functions
Voxel_Prs Class Reference

Interactive object for voxels.

#include <Voxel_Prs.hxx>

Inheritance diagram for Voxel_Prs:
Inheritance graph
[legend]

Public Member Functions

 Voxel_Prs ()
 An empty constructor.

void SetBoolVoxels (const Standard_Address theVoxels)
 <theVoxels> is a Voxel_BoolDS* object.

void SetColorVoxels (const Standard_Address theVoxels)
 <theVoxels> is a Voxel_ColorDS* object.

void SetROctBoolVoxels (const Standard_Address theVoxels)
 <theVoxels> is a Voxel_ROctBoolDS* object.

void SetTriangulation (const Handle< Poly_Triangulation > &theTriangulation)
 Sets a triangulation for visualization.

void SetDisplayMode (const Voxel_VoxelDisplayMode theMode)
 Sets a display mode for voxels.

virtual void SetColor (const Quantity_Color &theColor)
 Defines the color of points, quadrangles ... for BoolDS.

void SetColors (const Handle< Quantity_HArray1OfColor > &theColors)
 Defines the color of points, quadrangles... for ColorDS.
For ColorDS the size of array is 0 .. 15.
0 - means no color, this voxel is not drawn.

void SetPointSize (const Standard_Real theSize)
 Defines the size of points for all types of voxels.

void SetQuadrangleSize (const Standard_Integer theSize)
 Defines the size of quadrangles in per cents (0 .. 100).

virtual void SetTransparency (const Standard_Real theTransparency)
 Defines the transparency value [0 .. 1] for quadrangular visualization.

void Highlight (const Standard_Integer ix, const Standard_Integer iy, const Standard_Integer iz)
 Highlights a voxel.
It doesn't re-computes the whole interactive object,
but only marks a voxels as "highlighted".
The voxel becomes highlighted on next swapping of buffers.
In order to unhighlight a voxel, set ix = iy = iz = -1.

void Destroy ()
 A destructor of presentation data.

 ~Voxel_Prs ()
void SetDegenerateMode (const Standard_Boolean theDegenerate)
 Simplifies visualization of voxels in case of view rotation, panning and zooming.

void SetUsageOfGLlists (const Standard_Boolean theUsage)
 GL lists accelerate view rotation, panning and zooming operations, but
it takes additional memory...
It is up to the user of this interactive object to decide whether
he has enough memory and may use GL lists or
he is lack of memory and usage of GL lists is not recommended.
By default, usage of GL lists is on.
Also, as I noticed, the view without GL lists looks more precisely.

void SetSmoothPoints (const Standard_Boolean theSmooth)
 Switches visualization of points from smooth to rough.

void SetColorRange (const Standard_Byte theMinValue, const Standard_Byte theMaxValue)
 Defines min-max values for visualization of voxels of ColorDS structure.
By default, min value = 1, max value = 15 (all non-zero values).

void SetSizeRange (const Standard_Real theDisplayedXMin, const Standard_Real theDisplayedXMax, const Standard_Real theDisplayedYMin, const Standard_Real theDisplayedYMax, const Standard_Real theDisplayedZMin, const Standard_Real theDisplayedZMax)
 Defines the displayed area of voxels.
By default, the range is equal to the box of voxels (all voxels are displayed).

Protected Member Functions

virtual void Compute (const Handle< PrsMgr_PresentationManager3d > &thePresentationManager, const Handle< Prs3d_Presentation > &thePresentation, const Standard_Integer theMode=0)
 Calculates the 3D view aPresentation and its
updates. The latter are managed by aPresentationManager.
aPresentableObject has the display mode aMode;
this has the default value of 0, that is, the wireframe display mode.


Constructor & Destructor Documentation

Voxel_Prs::Voxel_Prs ( )
Voxel_Prs::~Voxel_Prs ( ) [inline]

Member Function Documentation

virtual void Voxel_Prs::Compute ( const Handle< PrsMgr_PresentationManager3d > &  aPresentationManager,
const Handle< Prs3d_Presentation > &  aPresentation,
const Standard_Integer  aMode = 0 
) [protected, virtual]

Reimplemented from PrsMgr_PresentableObject.

void Voxel_Prs::Destroy ( )
void Voxel_Prs::Highlight ( const Standard_Integer  ix,
const Standard_Integer  iy,
const Standard_Integer  iz 
)
void Voxel_Prs::SetBoolVoxels ( const Standard_Address  theVoxels)
virtual void Voxel_Prs::SetColor ( const Quantity_Color theColor) [virtual]

Reimplemented from AIS_InteractiveObject.

void Voxel_Prs::SetColorRange ( const Standard_Byte  theMinValue,
const Standard_Byte  theMaxValue 
)
void Voxel_Prs::SetColors ( const Handle< Quantity_HArray1OfColor > &  theColors)
void Voxel_Prs::SetColorVoxels ( const Standard_Address  theVoxels)
void Voxel_Prs::SetDegenerateMode ( const Standard_Boolean  theDegenerate)
void Voxel_Prs::SetDisplayMode ( const Voxel_VoxelDisplayMode  theMode)
void Voxel_Prs::SetPointSize ( const Standard_Real  theSize)
void Voxel_Prs::SetQuadrangleSize ( const Standard_Integer  theSize)
void Voxel_Prs::SetROctBoolVoxels ( const Standard_Address  theVoxels)
void Voxel_Prs::SetSizeRange ( const Standard_Real  theDisplayedXMin,
const Standard_Real  theDisplayedXMax,
const Standard_Real  theDisplayedYMin,
const Standard_Real  theDisplayedYMax,
const Standard_Real  theDisplayedZMin,
const Standard_Real  theDisplayedZMax 
)
void Voxel_Prs::SetSmoothPoints ( const Standard_Boolean  theSmooth)
virtual void Voxel_Prs::SetTransparency ( const Standard_Real  theTransparency) [virtual]

Reimplemented from AIS_InteractiveObject.

void Voxel_Prs::SetTriangulation ( const Handle< Poly_Triangulation > &  theTriangulation)
void Voxel_Prs::SetUsageOfGLlists ( const Standard_Boolean  theUsage)

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