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

#include <DrawWithDisplay3DModifier.h>

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

Public Member Functions

 ClippingPlane (double a, double b, double c, double d, bool drawPlane=true)
double * getEquation ()
- Public Member Functions inherited from DGtal::DrawWithDisplay3DModifier
std::string className () const

Data Fields

double myA
double myB
double myC
double myD
bool myDrawPlane

Detailed Description

Class for adding a Clipping plane through the Viewer3D stream. Realizes the concept CDrawableWithViewer3D.

Examples:
io/viewers/viewer3D-6-clipping.cpp, topology/3dBorderExtraction.cpp, and topology/3dBorderExtractionImg.cpp.

Definition at line 184 of file DrawWithDisplay3DModifier.h.


Constructor & Destructor Documentation

DGtal::ClippingPlane::ClippingPlane ( double  a,
double  b,
double  c,
double  d,
bool  drawPlane = true 
)
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 191 of file DrawWithDisplay3DModifier.h.

: myA( a ), myB( b ), myC( c ), myD ( d ), myDrawPlane(drawPlane)
{}

Member Function Documentation

double* DGtal::ClippingPlane::getEquation ( )
inline

Definition at line 201 of file DrawWithDisplay3DModifier.h.

References myA, myB, myC, and myD.

{
double *r = new double[4];
r[0] = myA;
r[1] = myB;
r[2] = myC;
r[3] = myD;
return r;
}

Field Documentation

double DGtal::ClippingPlane::myA

Definition at line 210 of file DrawWithDisplay3DModifier.h.

Referenced by DGtal::Display3DFactory::draw(), and getEquation().

double DGtal::ClippingPlane::myB

Definition at line 211 of file DrawWithDisplay3DModifier.h.

Referenced by DGtal::Display3DFactory::draw(), and getEquation().

double DGtal::ClippingPlane::myC

Definition at line 212 of file DrawWithDisplay3DModifier.h.

Referenced by DGtal::Display3DFactory::draw(), and getEquation().

double DGtal::ClippingPlane::myD

Definition at line 213 of file DrawWithDisplay3DModifier.h.

Referenced by DGtal::Display3DFactory::draw(), and getEquation().

bool DGtal::ClippingPlane::myDrawPlane

Definition at line 214 of file DrawWithDisplay3DModifier.h.

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


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