DGtal
1.5.beta
|
Aim: This semi abstract class defines the stream mechanism to display 3d primitive (like BallVector, DigitalSetBySTLSet, Object ...). The class Viewer3D and Board3DTo2D implement two different ways to display 3D objects. The first one (Viewer3D), permits an interactive visualisation (based on OpenGL ) and the second one (Board3dto2d) provides 3D visualisation from 2D vectorial display (based on the CAIRO library) More...
#include <DGtal/io/Display3D.h>
Data Structures | |
struct | BallD3D |
struct | ClippingPlaneD3D |
struct | CommonD3D |
struct | CubeD3D |
struct | LineD3D |
struct | PolygonD3D |
struct | QuadD3D |
struct | SelectCallbackFctStore |
struct | TriangleD3D |
Public Types | |
enum | StreamKey { addNewList , updateDisplay , shiftSurfelVisu } |
typedef Display3D< Space, KSpace > | Self |
typedef Space::RealPoint | RealPoint |
RealPoint type. More... | |
typedef Space::RealVector | RealVector |
RealVector type. More... | |
typedef CanonicEmbedder< Space > | Embedder |
typedef CanonicCellEmbedder< KSpace > | CellEmbedder |
typedef CanonicSCellEmbedder< KSpace > | SCellEmbedder |
typedef int(* | SelectCallbackFct) (void *viewer, DGtal::int32_t name, void *data) |
Select callback function type. More... | |
typedef std::map< DGtal::int32_t, std::vector< QuadD3D > > | QuadsMap |
The type that maps identifier name -> vector of QuadD3D. More... | |
typedef std::map< DGtal::int32_t, std::vector< CubeD3D > > | CubesMap |
The type that maps identifier name -> vector of CubeD3D. More... | |
typedef std::map< std::string, std::string > | ModeMapping |
typedef std::map< std::string, CountedPtr< DrawableWithDisplay3D > > | StyleMapping |
Public Member Functions | |
BOOST_CONCEPT_ASSERT ((concepts::CSpace< Space >)) | |
virtual | ~Display3D () |
Display3D (const KSpace &KSEmb) | |
Display3D () | |
Display3D (const Display3D &)=delete | |
Copy constructor. Deleted. More... | |
Display3D (Display3D &&)=delete | |
Move constructor. Deleted. More... | |
Display3D & | operator= (const Display3D &)=delete |
Assignment operator. Deleted. More... | |
Display3D & | operator= (Display3D &&)=delete |
Move operator. Deleted. More... | |
const Embedder & | embedder () const |
const CellEmbedder & | cellEmbedder () const |
const SCellEmbedder & | sCellEmbedder () const |
const KSpace & | space () const |
virtual void | setFillColor (DGtal::Color aColor) |
virtual void | setFillTransparency (unsigned char alpha) |
virtual void | setLineColor (DGtal::Color aColor) |
virtual DGtal::Color | getFillColor () |
virtual DGtal::Color | getLineColor () |
virtual void | setKSpace (const KSpace &aKSpace) |
void | setName3d (DGtal::int32_t name=-1) |
DGtal::int32_t | name3d () const |
void | setSelectCallback3D (SelectCallbackFct fct, void *data, DGtal::int32_t min_name, DGtal::int32_t max_name) |
SelectCallbackFct | getSelectCallback3D (DGtal::int32_t aName, void *&data) const |
void | addClippingPlane (double a, double b, double c, double d, bool drawPlane) |
std::string | getMode (const std::string &objectName) const |
void | createNewLineList (std::string s="") |
void | createNewBallList (std::string s="") |
DGtal::int32_t | createNewCubeList () |
bool | deleteCubeList (const DGtal::int32_t name) |
DGtal::int32_t | createNewQuadList () |
bool | deleteQuadList (const DGtal::int32_t name) |
void | createNewTriangleList (std::string s="") |
void | createNewPolygonList (std::string s="") |
void | addQuad (const RealPoint &p1, const RealPoint &p2, const RealPoint &p3, const RealPoint &p4) |
void | addQuadWithNormal (const RealPoint &p1, const RealPoint &p2, const RealPoint &p3, const RealPoint &p4, const RealPoint &n, const bool enableReorientation, const bool enableDoubleFace=false) |
void | addQuadFromSurfelCenter (const RealPoint &baseQuadCenter, bool xSurfel, bool ySurfel, bool zSurfel) |
void | addQuadFromSurfelCenterWithNormal (const RealPoint &baseQuadCenter, bool xSurfel, bool ySurfel, bool zSurfel, const RealVector &aNormal, const bool enableReorientation, const bool sign, const bool enableDoubleFace=false) |
void | addTriangle (const RealPoint &p1, const RealPoint &p2, const RealPoint &p3) |
void | addPolygon (const std::vector< RealPoint > &vertices) |
void | addLine (const RealPoint &p1, const RealPoint &p2, const double width=0.03) |
void | addCube (const RealPoint ¢er, double width=1.0) |
void | addBall (const RealPoint ¢er, const double radius=0.5, const unsigned int resolution=30) |
void | addPrism (const RealPoint &baseQuadCenter, bool xSurfel, bool ySurfel, bool zSurfel, double sizeShiftFactor, double sizeFactor=1.0, bool isSigned=false, bool aSign=true) |
void | addBasicSurfel (const RealPoint &baseQuadCenter, bool xSurfel, bool ySurfel, bool zSurfel) |
void | addCone (const RealPoint &p1, const RealPoint &p2, double width=0.08) |
void | addCylinder (const RealPoint &p1, const RealPoint &p2, const double width=0.02) |
void | updateBoundingBox (const RealPoint &point) |
void | exportToMesh (Mesh< RealPoint > &aMesh) const |
template<typename TDrawableWithDisplay3D > | |
Display3D & | operator<< (const TDrawableWithDisplay3D &object) |
void | selfDisplay (std::ostream &out) const |
bool | isValid () const |
void | clear () |
RealPoint | embed (const typename Space::Point &dp) const |
RealPoint | embedKS (const typename KSpace::SCell &cell) const |
RealPoint | embedKS (const DGtal::TransformedPrism &aTrans) const |
RealPoint | embedK (const typename KSpace::Cell &cell) const |
Data Fields | |
ModeMapping | myModes |
StyleMapping | myStyles |
bool | myBoundingPtEmptyTag |
True if the bounding box is empty (no objects added) More... | |
double | myBoundingPtUp [3] |
upper point of the bounding box More... | |
double | myBoundingPtLow [3] |
lower point of the bouding box More... | |
Static Protected Member Functions | |
static void | cross (double dst[3], double srcA[3], double srcB[3]) |
static void | normalize (double vec[3]) |
Protected Attributes | |
KSpace | myKSpace |
The Khalimsky space. More... | |
Embedder * | myEmbedder |
an embeder from a dgtal space point to a real space point More... | |
CellEmbedder * | myCellEmbedder |
an embeder from a unsigned khalimsky space point to a real space point More... | |
SCellEmbedder * | mySCellEmbedder |
an embeder from a signed khalimsky space point to a real space point More... | |
DGtal::Color | myCurrentFillColor |
DGtal::Color | myCurrentLineColor |
double | myCurrentfShiftVisuPrisms |
std::vector< std::vector< LineD3D > > | myLineSetList |
std::vector< std::vector< BallD3D > > | myBallSetList |
std::vector< ClippingPlaneD3D > | myClippingPlaneList |
std::vector< QuadD3D > | myPrismList |
QuadsMap | myQuadsMap |
std::vector< std::vector< TriangleD3D > > | myTriangleSetList |
Represents all the triangles drawn in the Display3D. More... | |
std::vector< std::vector< PolygonD3D > > | myPolygonSetList |
Represents all the polygon drawn in the Display3D. More... | |
CubesMap | myCubesMap |
std::vector< std::string > | myCubeSetNameList |
std::vector< std::string > | myLineSetNameList |
std::vector< std::string > | myBallSetNameList |
std::vector< std::string > | myClippingPlaneNameList |
std::vector< std::string > | myPrismNameList |
std::vector< std::string > | myQuadSetNameList |
std::vector< std::string > | myTriangleSetNameList |
std::vector< std::string > | myPolygonSetNameList |
DGtal::int32_t | myName3d |
std::set< SelectCallbackFctStore > | mySelectCallBackFcts |
bool | myBoundingPtChangedTag = false |
Aim: This semi abstract class defines the stream mechanism to display 3d primitive (like BallVector, DigitalSetBySTLSet, Object ...). The class Viewer3D and Board3DTo2D implement two different ways to display 3D objects. The first one (Viewer3D), permits an interactive visualisation (based on OpenGL ) and the second one (Board3dto2d) provides 3D visualisation from 2D vectorial display (based on the CAIRO library)
Description of class 'Display3D'
This class is parametrized by both the Digital and Khalimsky space used to display object. More precisely, embed methods are used to compute the Euclidean coordinate of digital objects/khalimksy cells.
Space | any model of Digital 3D Space |
KSpace | any mode of Khalimksky 3D space |
Definition at line 92 of file Display3D.h.
typedef CanonicCellEmbedder<KSpace> DGtal::Display3D< Space, KSpace >::CellEmbedder |
Definition at line 105 of file Display3D.h.
typedef std::map<DGtal::int32_t, std::vector< CubeD3D > > DGtal::Display3D< Space, KSpace >::CubesMap |
The type that maps identifier name -> vector of CubeD3D.
Definition at line 257 of file Display3D.h.
typedef CanonicEmbedder<Space> DGtal::Display3D< Space, KSpace >::Embedder |
Definition at line 104 of file Display3D.h.
typedef std::map< std::string, std::string > DGtal::Display3D< Space, KSpace >::ModeMapping |
The associated map type for storing possible modes used for displaying for digital objects.
Definition at line 786 of file Display3D.h.
typedef std::map<DGtal::int32_t, std::vector< QuadD3D > > DGtal::Display3D< Space, KSpace >::QuadsMap |
The type that maps identifier name -> vector of QuadD3D.
Definition at line 254 of file Display3D.h.
typedef Space::RealPoint DGtal::Display3D< Space, KSpace >::RealPoint |
RealPoint type.
Definition at line 101 of file Display3D.h.
typedef Space::RealVector DGtal::Display3D< Space, KSpace >::RealVector |
RealVector type.
Definition at line 103 of file Display3D.h.
typedef CanonicSCellEmbedder<KSpace> DGtal::Display3D< Space, KSpace >::SCellEmbedder |
Definition at line 106 of file Display3D.h.
typedef int(* DGtal::Display3D< Space, KSpace >::SelectCallbackFct) (void *viewer, DGtal::int32_t name, void *data) |
Select callback function type.
Definition at line 109 of file Display3D.h.
typedef Display3D<Space,KSpace> DGtal::Display3D< Space, KSpace >::Self |
Definition at line 99 of file Display3D.h.
typedef std::map< std::string,CountedPtr<DrawableWithDisplay3D> > DGtal::Display3D< Space, KSpace >::StyleMapping |
The associated map type for storing the default styles of digital objects.
Definition at line 792 of file Display3D.h.
enum DGtal::Display3D::StreamKey |
|
inlinevirtual |
Destructor.
Definition at line 281 of file Display3D.h.
References DGtal::Display3D< Space, KSpace >::myCellEmbedder, DGtal::Display3D< Space, KSpace >::myEmbedder, and DGtal::Display3D< Space, KSpace >::mySCellEmbedder.
|
inline |
Constructor with the Khalimsky Space
KSEmb | the khalimsky space for embedding |
Definition at line 292 of file Display3D.h.
|
inline |
|
delete |
Copy constructor. Deleted.
|
delete |
Move constructor. Deleted.
void DGtal::Display3D< Space, KSpace >::addBall | ( | const RealPoint & | center, |
const double | radius = 0.5 , |
||
const unsigned int | resolution = 30 |
||
) |
Method to add a point to the current display.
center | ball center x |
radius | the ball radius (default 0.5) |
resolution | ball resolution (default 30) |
void DGtal::Display3D< Space, KSpace >::addBasicSurfel | ( | const RealPoint & | baseQuadCenter, |
bool | xSurfel, | ||
bool | ySurfel, | ||
bool | zSurfel | ||
) |
Specific to display a surfel from Kahlimsky space from a basic way.
baseQuadCenter | base quad center point |
xSurfel | true if the surfel has its main face in the direction of the x-axis |
ySurfel | true if the surfel has its main face in the direction of the y-axis |
zSurfel | true if the surfel has its main face in the direction of the z-axis |
void DGtal::Display3D< Space, KSpace >::addClippingPlane | ( | double | a, |
double | b, | ||
double | c, | ||
double | d, | ||
bool | drawPlane | ||
) |
Add a new 3D Clipping plane represented by ax+by+cz+d = 0 A maximal of five clipping plane can be added.
a | a |
b | b |
c | c |
d | d plane equation. |
drawPlane | true if the plane should be draw |
void DGtal::Display3D< Space, KSpace >::addCone | ( | const RealPoint & | p1, |
const RealPoint & | p2, | ||
double | width = 0.08 |
||
) |
Add a signed KSLinel from the Kahlimsky space. Display it as a cone.
p1 | the cone apex |
p2 | the cone base |
width | the width of the cone (default= 0.08) |
void DGtal::Display3D< Space, KSpace >::addCube | ( | const RealPoint & | center, |
double | width = 1.0 |
||
) |
Method to add specific cube. It includes several modes to display the cube with and without the wire visualisation.
center | cube center |
width | the cube width. |
void DGtal::Display3D< Space, KSpace >::addCylinder | ( | const RealPoint & | p1, |
const RealPoint & | p2, | ||
const double | width = 0.02 |
||
) |
Add a non signed KSLinel from the Kahlimsky space. Display it as a simple cylinder.
p1 | the 1st point |
p2 | the 2nd point |
width | the width of the cylinder (default= 0.02) |
void DGtal::Display3D< Space, KSpace >::addLine | ( | const RealPoint & | p1, |
const RealPoint & | p2, | ||
const double | width = 0.03 |
||
) |
Method to add a line to the current display. x1, y1, z1, x2, y2, z2 the two extremty line points.
p1 | the 1st point |
p2 | the 2nd point |
width | the line width |
Referenced by testLocalConvolutionNormalVectorEstimator(), and testShapes().
void DGtal::Display3D< Space, KSpace >::addPolygon | ( | const std::vector< RealPoint > & | vertices | ) |
Method to add a specific polygon.
vertices | a vector containing the polygon vertices. |
Referenced by main(), and viewPolygons().
void DGtal::Display3D< Space, KSpace >::addPrism | ( | const RealPoint & | baseQuadCenter, |
bool | xSurfel, | ||
bool | ySurfel, | ||
bool | zSurfel, | ||
double | sizeShiftFactor, | ||
double | sizeFactor = 1.0 , |
||
bool | isSigned = false , |
||
bool | aSign = true |
||
) |
Specific to display a surfel from Kahlimsky space. The display can take into accounts the sign of the cell.
baseQuadCenter | base quad center point |
xSurfel | true if the surfel has its main face in the direction of the x-axis |
ySurfel | true if the surfel has its main face in the direction of the y-axis |
zSurfel | true if the surfel has its main face in the direction of the z-axis |
sizeShiftFactor | set the distance between the display of the surfel and potential Cube. |
sizeFactor | set the difference between the upper face of the prism and the down face |
isSigned | to specify if we want to display an signed or unsigned Cell. |
aSign | if isSigned is true it will be used to apply a different displays according this boolean parameter (if aSign=true oriented in the direct axis orientation) |
void DGtal::Display3D< Space, KSpace >::addQuad | ( | const RealPoint & | p1, |
const RealPoint & | p2, | ||
const RealPoint & | p3, | ||
const RealPoint & | p4 | ||
) |
Method to add a specific quad (used by addClippingPlane or to represent basic surfels from Khalimsky space). The normal is computed from the vertex order.
p1 | the 1st point |
p2 | the 2nd point |
p3 | the 3rd point |
p4 | the 4th point |
void DGtal::Display3D< Space, KSpace >::addQuadFromSurfelCenter | ( | const RealPoint & | baseQuadCenter, |
bool | xSurfel, | ||
bool | ySurfel, | ||
bool | zSurfel | ||
) |
Method to add a quad representing a surfel given from its center and its orientation.
baseQuadCenter | the surfel center. |
xSurfel | indicates that the sufel is in the x axis direction |
ySurfel | indicates that the sufel is in the y axis direction |
zSurfel | indicates that the sufel is in the z axis direction |
void DGtal::Display3D< Space, KSpace >::addQuadFromSurfelCenterWithNormal | ( | const RealPoint & | baseQuadCenter, |
bool | xSurfel, | ||
bool | ySurfel, | ||
bool | zSurfel, | ||
const RealVector & | aNormal, | ||
const bool | enableReorientation, | ||
const bool | sign, | ||
const bool | enableDoubleFace = false |
||
) |
Method to add a quad representing a surfel given from its center and its orientation, and attach a unitary normal vector to it. Depending on enableReorientation, Quad points can be reordered to make its orientation constistant with the normal direction.
baseQuadCenter | the surfel center. |
xSurfel | indicates that the sufel is in the x axis direction |
ySurfel | indicates that the sufel is in the y axis direction |
zSurfel | indicates that the sufel is in the z axis direction |
aNormal | a unitary normal vector to attach to the quad. |
enableReorientation | if true, the quad orientation will match with prescribed normal vector (dot product between the normal and the canonical one is >0). |
sign | if enableReorientation is true, we use this bool to get the surfel sign |
enableDoubleFace | if true, two quad (with opposite normal vector) will be drawn. |
void DGtal::Display3D< Space, KSpace >::addQuadWithNormal | ( | const RealPoint & | p1, |
const RealPoint & | p2, | ||
const RealPoint & | p3, | ||
const RealPoint & | p4, | ||
const RealPoint & | n, | ||
const bool | enableReorientation, | ||
const bool | enableDoubleFace = false |
||
) |
Method to add a specific quad. The normal vector is specified by the user. Depending on enableReorientation, Quad points can be reordered to make its orientation constistant with the normal direction.
p1 | the 1st point |
p2 | the 2nd point |
p3 | the 3rd point |
p4 | the 4th point |
n | the normal vector |
enableReorientation | if true, the quad orientation will match with prescribed normal vector (dot product between the normal and the canonical one is >0). |
enableDoubleFace | if true, two quad (with opposite normal vector) will be drawn. |
Referenced by main(), and testQuadNorm().
void DGtal::Display3D< Space, KSpace >::addTriangle | ( | const RealPoint & | p1, |
const RealPoint & | p2, | ||
const RealPoint & | p3 | ||
) |
Method to add a specific quad (used by addClippingPlane). The normal is computed from the vertex order.
p1 | the 1st point |
p2 | the 2nd point |
p3 | the 3rd point |
DGtal::Display3D< Space, KSpace >::BOOST_CONCEPT_ASSERT | ( | (concepts::CSpace< Space >) | ) |
|
inline |
Definition at line 332 of file Display3D.h.
References DGtal::Display3D< Space, KSpace >::myCellEmbedder.
void DGtal::Display3D< Space, KSpace >::clear | ( | ) |
Removes all sent data.
void DGtal::Display3D< Space, KSpace >::createNewBallList | ( | std::string | s = "" | ) |
Used to create a new list containing new 3D objects (useful to use transparency between different objects).
s | name of the new list |
DGtal::int32_t DGtal::Display3D< Space, KSpace >::createNewCubeList | ( | ) |
Used to create a new list containing new 3D objects (useful to use transparency between different objects).
void DGtal::Display3D< Space, KSpace >::createNewLineList | ( | std::string | s = "" | ) |
Used to create a new list containing new 3D objects (useful to use transparency between different objects).
s | name of the new list |
void DGtal::Display3D< Space, KSpace >::createNewPolygonList | ( | std::string | s = "" | ) |
Used to create a new list containing new 3D objects (useful to use transparency between different objects).
s | name of the new list |
Referenced by main().
DGtal::int32_t DGtal::Display3D< Space, KSpace >::createNewQuadList | ( | ) |
Used to create a new list containing new 3D objects (useful to use transparency between different objects).
void DGtal::Display3D< Space, KSpace >::createNewTriangleList | ( | std::string | s = "" | ) |
Used to create a new list containing new 3D objects (useful to use transparency between different objects).
s | name of the new list |
|
staticprotected |
Calculate the cross product of two 3d vectors and return it.
dst | destination vector. |
srcA | source vector A. |
srcB | source vector B. |
bool DGtal::Display3D< Space, KSpace >::deleteCubeList | ( | const DGtal::int32_t | name | ) |
Delete the cube list identified by a its name.
[in] | name | the name of the cube list. |
bool DGtal::Display3D< Space, KSpace >::deleteQuadList | ( | const DGtal::int32_t | name | ) |
Delete the quad list identified by a its name.
[in] | name | the name of the quad list. |
RealPoint DGtal::Display3D< Space, KSpace >::embed | ( | const typename Space::Point & | dp | ) | const |
|
inline |
Definition at line 328 of file Display3D.h.
References DGtal::Display3D< Space, KSpace >::myEmbedder.
RealPoint DGtal::Display3D< Space, KSpace >::embedK | ( | const typename KSpace::Cell & | cell | ) | const |
Use to embed an unsigned DGtal kahlimsky cell into space
cell | kahlimsky cell |
RealPoint DGtal::Display3D< Space, KSpace >::embedKS | ( | const DGtal::TransformedPrism & | aTrans | ) | const |
Use to embed a signed DGtal kahlimsky cell into space
aTrans | a transformed surfel prism |
RealPoint DGtal::Display3D< Space, KSpace >::embedKS | ( | const typename KSpace::SCell & | cell | ) | const |
Use to embed a signed DGtal kahlimsky cell into space
cell | a kahlimsky cell |
Referenced by testBallQuad().
void DGtal::Display3D< Space, KSpace >::exportToMesh | ( | Mesh< RealPoint > & | aMesh | ) | const |
Export as Mesh the current displayed elements.
aMesh | : (return) the mesh containing the elements of the display. |
|
virtual |
|
virtual |
Used to get the line color
Referenced by testLocalConvolutionNormalVectorEstimator().
std::string DGtal::Display3D< Space, KSpace >::getMode | ( | const std::string & | objectName | ) | const |
objectName | the name of the object (generally obtained with a 'object.className()'). |
SelectCallbackFct DGtal::Display3D< Space, KSpace >::getSelectCallback3D | ( | DGtal::int32_t | aName, |
void *& | data | ||
) | const |
[in] | aName | the "OpenGL name" that was selected. |
[out] | data | a pointer that was given setting the callback function. |
bool DGtal::Display3D< Space, KSpace >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
DGtal::int32_t DGtal::Display3D< Space, KSpace >::name3d | ( | ) | const |
|
staticprotected |
Normalize the input 3d vector.
vec | source & destination vector. |
Display3D& DGtal::Display3D< Space, KSpace >::operator<< | ( | const TDrawableWithDisplay3D< Space, KSpace > & | object | ) |
Draws the drawable [object] in this board. It should satisfy the concept CDrawableWithViewer3D, which requires for instance a method setStyle( Viewer3D & ).
object | any drawable object. |
|
delete |
Assignment operator. Deleted.
|
delete |
Move operator. Deleted.
|
inline |
Definition at line 336 of file Display3D.h.
References DGtal::Display3D< Space, KSpace >::mySCellEmbedder.
void DGtal::Display3D< Space, KSpace >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
|
virtual |
Used to set the current fill color
aColor | the fill color. |
Referenced by main(), and viewPolygons().
|
virtual |
Used to set the alpha value of the current fill color.
alpha | the transparency value (from 0 to 255). |
Referenced by main().
|
virtual |
Used to change the Khalimsky 3D Space.
aKSpace | the new Khalimsky space. |
|
virtual |
Used to set the line fill color
aColor | the line color. |
Referenced by main(), testLocalConvolutionNormalVectorEstimator(), and testShapes().
void DGtal::Display3D< Space, KSpace >::setName3d | ( | DGtal::int32_t | name = -1 | ) |
Sets the "OpenGL name" for next graphical directives.
name | the "OpenGL name", an integer identifier or -1 for none. |
void DGtal::Display3D< Space, KSpace >::setSelectCallback3D | ( | SelectCallbackFct | fct, |
void * | data, | ||
DGtal::int32_t | min_name, | ||
DGtal::int32_t | max_name | ||
) |
Sets the callback function called when selecting a graphical object with "OpenGL name" between min_name and max_name. Note that ranges should not overlap. If several functions can be called, behavior is undefined afterwards.
fct | any function. |
data | an arbitrary pointer that is given when calling the callback function. |
min_name | the first "OpenGL name" for which fct should be called. |
max_name | the last "OpenGL name" for which fct should be called. |
|
inline |
Definition at line 340 of file Display3D.h.
References DGtal::Display3D< Space, KSpace >::myKSpace.
void DGtal::Display3D< Space, KSpace >::updateBoundingBox | ( | const RealPoint & | point | ) |
Used to update the scene bounding box when objects are added.
point | the point to be taken into accounts. |
|
protected |
Used to represent all the list of point primitive
Definition at line 831 of file Display3D.h.
|
protected |
names of the lists in myBallSetList
Definition at line 870 of file Display3D.h.
|
protected |
Definition at line 899 of file Display3D.h.
bool DGtal::Display3D< Space, KSpace >::myBoundingPtEmptyTag |
True if the bounding box is empty (no objects added)
Definition at line 809 of file Display3D.h.
double DGtal::Display3D< Space, KSpace >::myBoundingPtLow[3] |
lower point of the bouding box
Definition at line 813 of file Display3D.h.
double DGtal::Display3D< Space, KSpace >::myBoundingPtUp[3] |
upper point of the bounding box
Definition at line 811 of file Display3D.h.
|
protected |
an embeder from a unsigned khalimsky space point to a real space point
Definition at line 266 of file Display3D.h.
Referenced by DGtal::Display3D< Space, KSpace >::cellEmbedder(), and DGtal::Display3D< Space, KSpace >::~Display3D().
|
protected |
Represent all the clipping planes added to the scene (of maxSize=5).
Definition at line 835 of file Display3D.h.
|
protected |
names of the lists in myClippingPlaneList
Definition at line 873 of file Display3D.h.
|
protected |
names of the lists in myCubeSetList
Definition at line 862 of file Display3D.h.
|
protected |
Represents all the cubes drawn in the Display3D. The map int --> vector<CubeD3D> associates a vector of cubes to an integer identifier (OpenGL name)
Definition at line 857 of file Display3D.h.
|
protected |
Definition at line 817 of file Display3D.h.
|
protected |
Used to specialized visualisation with KSpace surfels/cubes.
Definition at line 823 of file Display3D.h.
|
protected |
Definition at line 819 of file Display3D.h.
|
protected |
an embeder from a dgtal space point to a real space point
Definition at line 264 of file Display3D.h.
Referenced by DGtal::Display3D< Space, KSpace >::embedder(), and DGtal::Display3D< Space, KSpace >::~Display3D().
|
protected |
The Khalimsky space.
Definition at line 262 of file Display3D.h.
Referenced by DGtal::Display3D< Space, KSpace >::space().
|
protected |
Used to represent all the list of line primitive
Definition at line 827 of file Display3D.h.
|
protected |
names of the lists in myLineSetList
Definition at line 866 of file Display3D.h.
ModeMapping DGtal::Display3D< Space, KSpace >::myModes |
Definition at line 795 of file Display3D.h.
|
protected |
the "OpenGL name", used for instance by QGLViewer for selecting objects.
Definition at line 893 of file Display3D.h.
|
protected |
Represents all the polygon drawn in the Display3D.
Definition at line 851 of file Display3D.h.
|
protected |
names of the lists in myPolygonList
Definition at line 889 of file Display3D.h.
|
protected |
Represent truncated prism object to represent surfels of Khalimsky space (used to display Khalimsky Space Cell)
Definition at line 839 of file Display3D.h.
|
protected |
names of the lists in myPrismList
Definition at line 877 of file Display3D.h.
|
protected |
names of the lists in myQuadList
Definition at line 881 of file Display3D.h.
|
protected |
Represents all the planes drawn in the Display3D or to display Khalimsky Space Cell. The map int --> vector< QuadD3D> associates a vector of quads to an integer identifier (OpenGL name)
Definition at line 845 of file Display3D.h.
|
protected |
an embeder from a signed khalimsky space point to a real space point
Definition at line 268 of file Display3D.h.
Referenced by DGtal::Display3D< Space, KSpace >::sCellEmbedder(), and DGtal::Display3D< Space, KSpace >::~Display3D().
|
protected |
Stores the callback functions called when selecting a graphical object.
Definition at line 897 of file Display3D.h.
StyleMapping DGtal::Display3D< Space, KSpace >::myStyles |
For instance, may associate a new style object T1 to the class "HyperRectDomain": myStyles[ "HyperRectDomain" ] = T1.
One can also store a new style T2 for a specific mode used for drawing a class: myStyles[ "HyperRectDomain/Paving" ] = T2.
Modes may only be used in objects implementing the concept CDrawableWithBoard2D.
Definition at line 806 of file Display3D.h.
|
protected |
Represents all the triangles drawn in the Display3D.
Definition at line 848 of file Display3D.h.
|
protected |
names of the lists in myTriangleList
Definition at line 885 of file Display3D.h.