MorphoGraphX
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mgx::Clip Class Reference
+ Inheritance diagram for mgx::Clip:

Public Member Functions

 Clip (int id, QObject *parent=0)
 
int clipNo () const
 
void enable ()
 
void disable ()
 
bool enabled () const
 
void showGrid ()
 
void hideGrid ()
 
bool grid () const
 Returns true if the grid is sto be shown, false otherwise.
 
void setWidth (float f)
 
float width () const
 
void setGridSize (float s)
 
float gridSize () const
 
void setNormal (const Point3f &n)
 
const Point3fnormal () const
 
Point4f normalFormPos () const
 Return the description of the clipping plane as a 4d point, as used by OpenGL This one returns the positive plane (i.e. More...
 
Point4f normalFormNeg () const
 Return the description of the clipping plane as a 4d point, as used by OpenGL This one returns the negative plane (i.e. More...
 
void setGridSquares (uint n)
 
uint gridSquares () const
 
qglviewer::ManipulatedFrameframe ()
 Get frame.
 
const qglviewer::ManipulatedFrameframe () const
 
void hasChanged ()
 Call this if you change the manipulated frame.
 
bool changed () const
 
void resetChanges ()
 
bool isClipped (const Point3f &p)
 
const Point3fxb () const
 
const Point3fyb () const
 
const Point3fzb () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent=0)
 
 blockSignals (bool block)
 
 childEvent (QChildEvent *event)
 
 children ()
 
 connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type=Qt::AutoConnection)
 
 connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type=Qt::AutoConnection)
 
 connectNotify (const char *signal)
 
 customEvent (QEvent *event)
 
 deleteLater ()
 
 destroyed (QObject *obj=0)
 
 disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
 disconnect (const char *signal=0, const QObject *receiver=0, const char *method=0)
 
 disconnect (const QObject *receiver, const char *method=0)
 
 disconnectNotify (const char *signal)
 
 dumpObjectInfo ()
 
 dumpObjectTree ()
 
 dynamicPropertyNames ()
 
 event (QEvent *e)
 
 eventFilter (QObject *watched, QEvent *event)
 
 findChild (const QString &name=QString()
 
 findChildren (const QString &name=QString()
 
 findChildren (const QRegExp &regExp)
 
 inherits (const char *className)
 
 installEventFilter (QObject *filterObj)
 
 isWidgetType ()
 
 killTimer (int id)
 
 metaObject ()
 
 moveToThread (QThread *targetThread)
 
 parent ()
 
 property (const char *name)
 
 receivers (const char *signal)
 
 removeEventFilter (QObject *obj)
 
 sender ()
 
 setParent (QObject *parent)
 
 setProperty (const char *name, const QVariant &value)
 
 signalsBlocked ()
 
 startTimer (int interval)
 
 thread ()
 
 timerEvent (QTimerEvent *event)
 
 tr (const char *sourceText, const char *disambiguation=0, int n=-1)
 
 trUtf8 (const char *sourceText, const char *disambiguation=0, int n=-1)
 
 staticMetaObject
 

Protected Member Functions

void computeBasis ()
 

Protected Attributes

bool _enable
 If true, these planes are used to clipping.
 
bool _showGrid
 Show the grid corresponding to the clipping plane.
 
float _width
 Width of the region.
 
float _gridSize
 Size of the grid (i.e. in the clipping plane)
 
Point3f _normal
 Normal to the grid.
 
Point3f _xb
 X-axis of the planes.
 
Point3f _yb
 Y-axis of the planes.
 
Point3f _zb
 Thickness of the region.
 
uint _gridSquares
 Number of squares drawn for the grid.
 
int _clipNo
 Id of the clipping region (0, 1 or 2)
 
bool _changed
 If true, it changed and need update in OpenGL.
 
qglviewer::ManipulatedFrame _frame
 

Member Function Documentation

Point4f mgx::Clip::normalFormNeg ( ) const

Return the description of the clipping plane as a 4d point, as used by OpenGL This one returns the negative plane (i.e.

the one with negative normal)

Point4f mgx::Clip::normalFormPos ( ) const

Return the description of the clipping plane as a 4d point, as used by OpenGL This one returns the positive plane (i.e.

the one with positive normal)


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