ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccPlanarEntityInterface Class Referenceabstract

Interface for a planar entity. More...

#include <ecvPlanarEntityInterface.h>

Inheritance diagram for ccPlanarEntityInterface:

Public Member Functions

 ccPlanarEntityInterface ()
 Default constructor. More...
 
 ccPlanarEntityInterface (unsigned int id)
 
void showNormalVector (bool state)
 Show normal vector. More...
 
bool normalVectorIsShown () const
 Whether normal vector is shown or not. More...
 
virtual CCVector3 getNormal () const =0
 Returns the entity normal. More...
 
void glDrawNormal (CC_DRAW_CONTEXT &context, const CCVector3 &pos, float scale, const ecvColor::Rgb *color=0)
 Draws a normal vector (OpenGL) More...
 
void clearNormalVector (CC_DRAW_CONTEXT &context)
 

Protected Attributes

bool m_showNormalVector
 Whether the facet normal vector should be displayed or not. More...
 
unsigned int m_uniqueId
 
QString m_bodyId
 
QString m_headId
 

Detailed Description

Interface for a planar entity.

Definition at line 18 of file ecvPlanarEntityInterface.h.

Constructor & Destructor Documentation

◆ ccPlanarEntityInterface() [1/2]

ccPlanarEntityInterface::ccPlanarEntityInterface ( )

Default constructor.

Definition at line 18 of file ecvPlanarEntityInterface.cpp.

◆ ccPlanarEntityInterface() [2/2]

ccPlanarEntityInterface::ccPlanarEntityInterface ( unsigned int  id)

Definition at line 26 of file ecvPlanarEntityInterface.cpp.

Member Function Documentation

◆ clearNormalVector()

void ccPlanarEntityInterface::clearNormalVector ( CC_DRAW_CONTEXT context)

◆ getNormal()

virtual CCVector3 ccPlanarEntityInterface::getNormal ( ) const
pure virtual

Returns the entity normal.

Implemented in ccPlane, and ccFacet.

Referenced by define_ccPlane(), ccPropertiesTreeDelegate::fillWithPlanarEntity(), and glDrawNormal().

◆ glDrawNormal()

◆ normalVectorIsShown()

bool ccPlanarEntityInterface::normalVectorIsShown ( ) const
inline

◆ showNormalVector()

void ccPlanarEntityInterface::showNormalVector ( bool  state)
inline

Member Data Documentation

◆ m_bodyId

QString ccPlanarEntityInterface::m_bodyId
protected

Definition at line 45 of file ecvPlanarEntityInterface.h.

Referenced by clearNormalVector(), and glDrawNormal().

◆ m_headId

QString ccPlanarEntityInterface::m_headId
protected

Definition at line 46 of file ecvPlanarEntityInterface.h.

Referenced by clearNormalVector(), and glDrawNormal().

◆ m_showNormalVector

bool ccPlanarEntityInterface::m_showNormalVector
protected

Whether the facet normal vector should be displayed or not.

Definition at line 42 of file ecvPlanarEntityInterface.h.

Referenced by ccFacet::clone(), normalVectorIsShown(), and showNormalVector().

◆ m_uniqueId

unsigned int ccPlanarEntityInterface::m_uniqueId
protected

Definition at line 43 of file ecvPlanarEntityInterface.h.

Referenced by glDrawNormal().


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