DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Data Fields
DGtal::CustomColors3D Struct Reference

#include <DrawWithDisplay3DModifier.h>

Inheritance diagram for DGtal::CustomColors3D:
Inheritance graph
[legend]
Collaboration diagram for DGtal::CustomColors3D:
Collaboration graph
[legend]

Public Member Functions

 CustomColors3D (const Color &penColor, const Color &fillColor)
- Public Member Functions inherited from DGtal::DrawWithDisplay3DModifier
std::string className () const

Data Fields

Color myPenColor
Color myFillColor

Detailed Description

Custom style class redefining the fill color and the gl_LINE/gl_POINT color. You can use DGtal::Color with alpha transparency value but you nedd to take into account the z-buffer during the Open-GL based rendering.

Display3D display;
display << CustomColors3D(Color(250, 0,0),Color(250, 0,0));
...
See also:
Display3D
Examples:
geometry/surfaces/greedy-plane-segmentation-ex2.cpp, geometry/surfaces/greedy-plane-segmentation.cpp, io/boards/dgtalBoard3DTo2D-3-objects.cpp, io/boards/dgtalBoard3DTo2D-5-custom.cpp, io/boards/dgtalBoard3DTo2D-6.cpp, io/digitalSetFromPointList.cpp, io/viewers/viewer3D-3-objects.cpp, io/viewers/viewer3D-5-custom.cpp, io/viewers/viewer3D-6-clipping.cpp, topology/3dBorderExtraction.cpp, topology/3dKSSurfaceExtraction.cpp, topology/frontierAndBoundary.cpp, topology/homotopicThinning3D.cpp, topology/volScanBoundary.cpp, and topology/volTrackBoundary.cpp.

Definition at line 153 of file DrawWithDisplay3DModifier.h.


Constructor & Destructor Documentation

DGtal::CustomColors3D::CustomColors3D ( const Color penColor,
const Color fillColor 
)
inline

Constructor.

Parameters:
penColorspecifies the pen color.
fillColorspecifies the fill color.

Definition at line 164 of file DrawWithDisplay3DModifier.h.

: myPenColor( penColor ), myFillColor( fillColor )
{}

Field Documentation

Color DGtal::CustomColors3D::myFillColor

Definition at line 156 of file DrawWithDisplay3DModifier.h.

Referenced by DGtal::Display3DFactory::draw().

Color DGtal::CustomColors3D::myPenColor

Definition at line 155 of file DrawWithDisplay3DModifier.h.

Referenced by DGtal::Display3DFactory::draw().


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