/usr/include/oce/Voxel_Prs.hxx is in liboce-visualization-dev 0.17.2-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | // This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _Voxel_Prs_HeaderFile
#define _Voxel_Prs_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_Voxel_Prs.hxx>
#include <Standard_Address.hxx>
#include <AIS_InteractiveObject.hxx>
#include <Handle_Poly_Triangulation.hxx>
#include <Voxel_VoxelDisplayMode.hxx>
#include <Handle_Quantity_HArray1OfColor.hxx>
#include <Standard_Real.hxx>
#include <Standard_Integer.hxx>
#include <PrsMgr_PresentationManager3d.hxx>
#include <Handle_Prs3d_Presentation.hxx>
#include <Handle_SelectMgr_Selection.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Byte.hxx>
class Poly_Triangulation;
class Quantity_Color;
class Quantity_HArray1OfColor;
class Prs3d_Presentation;
class SelectMgr_Selection;
//! Interactive object for voxels.
class Voxel_Prs : public AIS_InteractiveObject
{
public:
//! An empty constructor.
Standard_EXPORT Voxel_Prs();
//! <theVoxels> is a Voxel_BoolDS* object.
Standard_EXPORT void SetBoolVoxels (const Standard_Address theVoxels) ;
//! <theVoxels> is a Voxel_ColorDS* object.
Standard_EXPORT void SetColorVoxels (const Standard_Address theVoxels) ;
//! <theVoxels> is a Voxel_ROctBoolDS* object.
Standard_EXPORT void SetROctBoolVoxels (const Standard_Address theVoxels) ;
//! Sets a triangulation for visualization.
Standard_EXPORT void SetTriangulation (const Handle(Poly_Triangulation)& theTriangulation) ;
//! Sets a display mode for voxels.
Standard_EXPORT void SetDisplayMode (const Voxel_VoxelDisplayMode theMode) ;
//! Defines the color of points, quadrangles ... for BoolDS.
Standard_EXPORT virtual void SetColor (const Quantity_Color& theColor) ;
//! 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.
Standard_EXPORT void SetColors (const Handle(Quantity_HArray1OfColor)& theColors) ;
//! Defines the size of points for all types of voxels.
Standard_EXPORT void SetPointSize (const Standard_Real theSize) ;
//! Defines the size of quadrangles in per cents (0 .. 100).
Standard_EXPORT void SetQuadrangleSize (const Standard_Integer theSize) ;
//! Defines the transparency value [0 .. 1] for quadrangular visualization.
Standard_EXPORT virtual void SetTransparency (const Standard_Real theTransparency) ;
//! 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.
Standard_EXPORT void Highlight (const Standard_Integer ix, const Standard_Integer iy, const Standard_Integer iz) ;
//! A destructor of presentation data.
Standard_EXPORT void Destroy() ;
~Voxel_Prs()
{
Destroy();
}
//! Simplifies visualization of voxels in case of view rotation, panning and zooming.
Standard_EXPORT void SetDegenerateMode (const Standard_Boolean theDegenerate) ;
//! 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.
Standard_EXPORT void SetUsageOfGLlists (const Standard_Boolean theUsage) ;
//! Switches visualization of points from smooth to rough.
Standard_EXPORT void SetSmoothPoints (const Standard_Boolean theSmooth) ;
//! Defines min-max values for visualization of voxels of ColorDS structure.
//! By default, min value = 1, max value = 15 (all non-zero values).
Standard_EXPORT void SetColorRange (const Standard_Byte theMinValue, const Standard_Byte theMaxValue) ;
//! Defines the displayed area of voxels.
//! By default, the range is equal to the box of voxels (all voxels are displayed).
Standard_EXPORT 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) ;
DEFINE_STANDARD_RTTI(Voxel_Prs)
protected:
Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager3d)& thePresentationManager, const Handle(Prs3d_Presentation)& thePresentation, const Standard_Integer theMode = 0) ;
private:
Standard_EXPORT void ComputeSelection (const Handle(SelectMgr_Selection)& theSelection, const Standard_Integer theMode) ;
//! Allocates the data structure of visualization.
Standard_EXPORT void Allocate() ;
Standard_Address myVisData;
};
#endif // _Voxel_Prs_HeaderFile
|