![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Interface for a planar entity. More...
#include <ecvPlanarEntityInterface.h>

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 |
Interface for a planar entity.
Definition at line 18 of file ecvPlanarEntityInterface.h.
| ccPlanarEntityInterface::ccPlanarEntityInterface | ( | ) |
Default constructor.
Definition at line 18 of file ecvPlanarEntityInterface.cpp.
| ccPlanarEntityInterface::ccPlanarEntityInterface | ( | unsigned int | id | ) |
Definition at line 26 of file ecvPlanarEntityInterface.cpp.
| void ccPlanarEntityInterface::clearNormalVector | ( | CC_DRAW_CONTEXT & | context | ) |
Definition at line 114 of file ecvPlanarEntityInterface.cpp.
References c_unitNormalHeadSymbol(), c_unitNormalSymbol(), context, ECV_MESH, m_bodyId, m_headId, and ecvDisplayTools::RemoveEntities().
Referenced by glDrawNormal(), and ccHObject::removeFromRenderScreen().
|
pure virtual |
Returns the entity normal.
Implemented in ccPlane, and ccFacet.
Referenced by define_ccPlane(), ccPropertiesTreeDelegate::fillWithPlanarEntity(), and glDrawNormal().
| void ccPlanarEntityInterface::glDrawNormal | ( | CC_DRAW_CONTEXT & | context, |
| const CCVector3 & | pos, | ||
| float | scale, | ||
| const ecvColor::Rgb * | color = 0 |
||
| ) |
Draws a normal vector (OpenGL)
Definition at line 29 of file ecvPlanarEntityInterface.cpp.
References ccGLMatrixTpl< T >::applyRotation(), c_unitNormalHeadSymbol(), c_unitNormalSymbol(), CC_ENTITY_PICKING, clearNormalVector(), color, context, data, ccGLDrawContext::drawingFlags, ccGLMatrixTpl< float >::FromToRotation(), ecvDisplayTools::GetCurrentScreen(), getNormal(), ecvColor::green(), m_bodyId, m_headId, m_uniqueId, normalVectorIsShown(), PC_ONE, SEPARATOR, TransformInfo::setScale(), TransformInfo::setTransformation(), TransformInfo::setTranslationEnd(), TransformInfo::setTranslationStart(), ccGLDrawContext::transformInfo, ccGLDrawContext::viewID, Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
Referenced by ccFacet::drawMeOnly(), ccPlane::drawMeOnly(), and ccHObject::getTypeID_recursive().
|
inline |
Whether normal vector is shown or not.
Definition at line 27 of file ecvPlanarEntityInterface.h.
References m_showNormalVector.
Referenced by define_ccPlane(), ccFacet::drawMeOnly(), ccPropertiesTreeDelegate::fillWithPlanarEntity(), ccFacet::getNormalVectorMesh(), and glDrawNormal().
|
inline |
Show normal vector.
Definition at line 25 of file ecvPlanarEntityInterface.h.
References m_showNormalVector.
Referenced by ccFitPlane::ccFitPlane(), qFacets::createFacets(), define_ccPlane(), ccHObject::getTypeID_recursive(), RDBFilter::loadFile(), ccCompass::recurseNormals(), and ccHObject::removeFromRenderScreen().
|
protected |
Definition at line 45 of file ecvPlanarEntityInterface.h.
Referenced by clearNormalVector(), and glDrawNormal().
|
protected |
Definition at line 46 of file ecvPlanarEntityInterface.h.
Referenced by clearNormalVector(), and glDrawNormal().
|
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().
|
protected |
Definition at line 43 of file ecvPlanarEntityInterface.h.
Referenced by glDrawNormal().