Like Mesh viewprovider but with manipulator. More...
#include <ViewProviderTransformDemolding.h>
Public Member Functions | |
virtual void | attach (App::DocumentObject *) |
Extracts the mesh data from the feature pcFeature and creates an Inventor node SoNode with these data. | |
virtual const char * | getDefaultDisplayMode () const |
get the default display mode | |
virtual std::vector< std::string > | getDisplayModes (void) const |
returns a list of all possible modes | |
virtual Base::Type | getTypeId (void) const |
virtual void | setDisplayMode (const char *ModeName) |
set the viewing mode | |
ViewProviderMeshTransformDemolding () | |
virtual | ~ViewProviderMeshTransformDemolding () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
void | calcMaterialIndex (const SbRotation &rot) |
void | calcNormalVector (void) |
void | DragEndCallback (void) |
virtual const App::PropertyData & | getPropertyData (void) const |
void | valueChangedCallback (void) |
Static Protected Member Functions | |
static const App::PropertyData * | getPropertyDataPtr (void) |
static void | sDragEndCallback (void *, SoDragger *) |
static void | sValueChangedCallback (void *, SoDragger *) |
Protected Attributes | |
Base::Vector3f | center |
std::vector< SbVec3f > | normalVector |
SoMaterial * | pcColorMat |
SoTrackballDragger * | pcTrackballDragger |
SoTransform * | pcTransformDrag |
Like Mesh viewprovider but with manipulator.
Definition at line 53 of file ViewProviderTransformDemolding.h.
ViewProviderMeshTransformDemolding::ViewProviderMeshTransformDemolding | ( | ) |
Definition at line 64 of file ViewProviderTransformDemolding.cpp.
ViewProviderMeshTransformDemolding::~ViewProviderMeshTransformDemolding | ( | ) | [virtual] |
Definition at line 70 of file ViewProviderTransformDemolding.cpp.
References pcTrackballDragger.
void ViewProviderMeshTransformDemolding::attach | ( | App::DocumentObject * | pcFeat | ) | [virtual] |
Extracts the mesh data from the feature pcFeature and creates an Inventor node SoNode with these data.
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 75 of file ViewProviderTransformDemolding.cpp.
References Gui::ViewProvider::addDisplayMaskMode(), calcMaterialIndex(), calcNormalVector(), center, pcColorMat, Gui::ViewProviderGeometryObject::pcHighlight, MeshGui::ViewProviderMesh::pcMatBinding, Gui::ViewProviderDocumentObject::pcObject, pcTrackballDragger, pcTransformDrag, sDragEndCallback(), and sValueChangedCallback().
void ViewProviderMeshTransformDemolding::calcMaterialIndex | ( | const SbRotation & | rot | ) | [protected] |
Definition at line 146 of file ViewProviderTransformDemolding.cpp.
References KDL::acos(), Base::Angle, normalVector, and result.
Referenced by attach(), and DragEndCallback().
void ViewProviderMeshTransformDemolding::calcNormalVector | ( | void | ) | [protected] |
Definition at line 132 of file ViewProviderTransformDemolding.cpp.
References MeshCore::MeshGeomFacet::GetNormal(), MeshCore::MeshFacetIterator::Init(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), normalVector, and Gui::ViewProviderDocumentObject::pcObject.
Referenced by attach().
void * MeshGui::ViewProviderMeshTransformDemolding::create | ( | void | ) | [static] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 61 of file ViewProviderTransformDemolding.cpp.
void ViewProviderMeshTransformDemolding::DragEndCallback | ( | void | ) | [protected] |
Definition at line 179 of file ViewProviderTransformDemolding.cpp.
References calcMaterialIndex(), Base::Console(), and pcTrackballDragger.
Referenced by sDragEndCallback().
Base::Type MeshGui::ViewProviderMeshTransformDemolding::getClassTypeId | ( | void | ) | [static] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 61 of file ViewProviderTransformDemolding.cpp.
const char * ViewProviderMeshTransformDemolding::getDefaultDisplayMode | ( | ) | const [virtual] |
get the default display mode
Reimplemented from Gui::ViewProviderDocumentObject.
Definition at line 213 of file ViewProviderTransformDemolding.cpp.
std::vector< std::string > ViewProviderMeshTransformDemolding::getDisplayModes | ( | void | ) | const [virtual] |
returns a list of all possible modes
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 218 of file ViewProviderTransformDemolding.cpp.
const App::PropertyData & MeshGui::ViewProviderMeshTransformDemolding::getPropertyData | ( | void | ) | const [protected, virtual] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 61 of file ViewProviderTransformDemolding.cpp.
const App::PropertyData * MeshGui::ViewProviderMeshTransformDemolding::getPropertyDataPtr | ( | void | ) | [static, protected] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 61 of file ViewProviderTransformDemolding.cpp.
Base::Type MeshGui::ViewProviderMeshTransformDemolding::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 61 of file ViewProviderTransformDemolding.cpp.
void MeshGui::ViewProviderMeshTransformDemolding::init | ( | void | ) | [static] |
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 61 of file ViewProviderTransformDemolding.cpp.
Referenced by initMeshGui().
void ViewProviderMeshTransformDemolding::sDragEndCallback | ( | void * | This, | |
SoDragger * | ||||
) | [static, protected] |
Definition at line 174 of file ViewProviderTransformDemolding.cpp.
References DragEndCallback().
Referenced by attach().
void ViewProviderMeshTransformDemolding::setDisplayMode | ( | const char * | ModeName | ) | [virtual] |
set the viewing mode
Reimplemented from MeshGui::ViewProviderMesh.
Definition at line 206 of file ViewProviderTransformDemolding.cpp.
References Gui::ViewProvider::setDisplayMaskMode().
void ViewProviderMeshTransformDemolding::sValueChangedCallback | ( | void * | This, | |
SoDragger * | ||||
) | [static, protected] |
Definition at line 169 of file ViewProviderTransformDemolding.cpp.
References valueChangedCallback().
Referenced by attach().
void ViewProviderMeshTransformDemolding::valueChangedCallback | ( | void | ) | [protected] |
Definition at line 188 of file ViewProviderTransformDemolding.cpp.
References center, pcTrackballDragger, pcTransformDrag, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
Referenced by sValueChangedCallback().
Definition at line 89 of file ViewProviderTransformDemolding.h.
Referenced by attach(), and valueChangedCallback().
std::vector<SbVec3f> MeshGui::ViewProviderMeshTransformDemolding::normalVector [protected] |
Definition at line 88 of file ViewProviderTransformDemolding.h.
Referenced by calcMaterialIndex(), and calcNormalVector().
SoMaterial* MeshGui::ViewProviderMeshTransformDemolding::pcColorMat [protected] |
Definition at line 87 of file ViewProviderTransformDemolding.h.
Referenced by attach().
SoTrackballDragger* MeshGui::ViewProviderMeshTransformDemolding::pcTrackballDragger [protected] |
Definition at line 85 of file ViewProviderTransformDemolding.h.
Referenced by attach(), DragEndCallback(), valueChangedCallback(), and ~ViewProviderMeshTransformDemolding().
SoTransform* MeshGui::ViewProviderMeshTransformDemolding::pcTransformDrag [protected] |
Definition at line 86 of file ViewProviderTransformDemolding.h.
Referenced by attach(), and valueChangedCallback().