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

#include <DrawWithDisplay3DModifier.h>

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

Public Member Functions

 CustomStyle3D (std::string classname, DrawableWithDisplay3D *style)
std::string className () const

Data Fields

std::string myClassname
CountedPtr< DrawableWithDisplay3DmyStyle

Detailed Description

Modifier class in a Display3D stream. Useful to choose your own style for a given class. Realizes the concept CDrawableWithDisplay3D.

Definition at line 112 of file DrawWithDisplay3DModifier.h.


Constructor & Destructor Documentation

DGtal::CustomStyle3D::CustomStyle3D ( std::string  classname,
DrawableWithDisplay3D style 
)
inline
Parameters:
classnamethe name of the class to which the style is associated.
stylea pointer on a dynamically allocated style, which is acquired by the class.

Definition at line 119 of file DrawWithDisplay3DModifier.h.

: myClassname( classname ), myStyle( style )
{}

Member Function Documentation

std::string DGtal::CustomStyle3D::className ( ) const
inline

Reimplemented from DGtal::DrawWithDisplay3DModifier.

Definition at line 123 of file DrawWithDisplay3DModifier.h.

{
return "CustomStyle3D";
}

Field Documentation

std::string DGtal::CustomStyle3D::myClassname

Definition at line 133 of file DrawWithDisplay3DModifier.h.

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

CountedPtr<DrawableWithDisplay3D> DGtal::CustomStyle3D::myStyle

Definition at line 134 of file DrawWithDisplay3DModifier.h.

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


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