DGtal 0.3.0
Public Member Functions | Private Attributes

DGtal::ClippingPlane Struct Reference

#include <DGtalQGLViewer.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)
void selfDrawQGL (DGtalQGLViewer &viewer) const
double * getEquation ()

Private Attributes

double myA
double myB
double myC
double myD
bool myDrawPlane

Detailed Description

Class for adding a Clipping plane through the DGtalQGLViewer stream. Realizes the concept CDrawableWithDGtalQGLViewer.

Examples:

3dBorderExtraction.cpp, and 3dBorderExtractionImg.cpp.

Definition at line 519 of file DGtalQGLViewer.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 526 of file DGtalQGLViewer.h.


Member Function Documentation

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

Definition at line 534 of file DGtalQGLViewer.h.

References myA, myB, myC, and myD.

void DGtal::ClippingPlane::selfDrawQGL ( DGtalQGLViewer viewer) const [inline, virtual]

Reimplemented from DGtal::DrawWithQGLViewerModifier.

Definition at line 529 of file DGtalQGLViewer.h.

References DGtal::DGtalQGLViewer::addClippingPlane(), myA, myB, myC, myD, and myDrawPlane.


Field Documentation

double DGtal::ClippingPlane::myA [private]

Definition at line 544 of file DGtalQGLViewer.h.

Referenced by getEquation(), and selfDrawQGL().

double DGtal::ClippingPlane::myB [private]

Definition at line 545 of file DGtalQGLViewer.h.

Referenced by getEquation(), and selfDrawQGL().

double DGtal::ClippingPlane::myC [private]

Definition at line 546 of file DGtalQGLViewer.h.

Referenced by getEquation(), and selfDrawQGL().

double DGtal::ClippingPlane::myD [private]

Definition at line 547 of file DGtalQGLViewer.h.

Referenced by getEquation(), and selfDrawQGL().

Definition at line 548 of file DGtalQGLViewer.h.

Referenced by selfDrawQGL().


The documentation for this struct was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines