MorphoGraphX  2.0-1-227
Public Member Functions | Public Attributes | List of all members
mgx::ClipRegion Class Reference

#include <ClipRegion.hpp>

Public Member Functions

 ClipRegion ()
 
 ~ClipRegion ()
 
void setClip (Clip *c)
 
void readParms (Parms &parms, QString section)
 Read clipping plane parameters. More...
 
void writeParms (QTextStream &pout, QString section)
 write parms to file More...
 
void disable ()
 Draw (use) clipping place (ax + by + cz + d = 0) More...
 
void drawClip ()
 Draw (use) clipping place (ax + by + cz + d = 0) More...
 
void drawGrid (float width)
 Draw (use) clipping place (ax + by + cz + d = 0) More...
 

Public Attributes

Clipclip
 
GLenum clip0
 OpenGL identifier for the first clipping plane. More...
 
GLenum clip1
 OpenGL identifier for the second clipping plane. More...
 
Colors::ColorType GridColor
 Color used to draw the grid. More...
 

Detailed Description

Class to handle rotatable pair of clipping planes.

Definition at line 39 of file ClipRegion.hpp.

Constructor & Destructor Documentation

◆ ClipRegion()

mgx::ClipRegion::ClipRegion ( )

◆ ~ClipRegion()

mgx::ClipRegion::~ClipRegion ( )
inline

Definition at line 42 of file ClipRegion.hpp.

Member Function Documentation

◆ disable()

void mgx::ClipRegion::disable ( )
inline

Draw (use) clipping place (ax + by + cz + d = 0)

Definition at line 67 of file ClipRegion.hpp.

◆ drawClip()

void mgx::ClipRegion::drawClip ( )

Draw (use) clipping place (ax + by + cz + d = 0)

◆ drawGrid()

void mgx::ClipRegion::drawGrid ( float  width)

Draw (use) clipping place (ax + by + cz + d = 0)

◆ readParms()

void mgx::ClipRegion::readParms ( Parms parms,
QString  section 
)

Read clipping plane parameters.

◆ setClip()

void mgx::ClipRegion::setClip ( Clip c)

◆ writeParms()

void mgx::ClipRegion::writeParms ( QTextStream &  pout,
QString  section 
)

write parms to file

Member Data Documentation

◆ clip

Clip* mgx::ClipRegion::clip

Definition at line 43 of file ClipRegion.hpp.

◆ clip0

GLenum mgx::ClipRegion::clip0

OpenGL identifier for the first clipping plane.

Definition at line 52 of file ClipRegion.hpp.

◆ clip1

GLenum mgx::ClipRegion::clip1

OpenGL identifier for the second clipping plane.

Definition at line 56 of file ClipRegion.hpp.

◆ GridColor

Colors::ColorType mgx::ClipRegion::GridColor

Color used to draw the grid.

Definition at line 58 of file ClipRegion.hpp.


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