Developer Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
TangentSpace Class Reference
Inheritance diagram for TangentSpace:
BaseInterface ToolboxInterface

Classes

struct  TangentBasis
 

Public Types

enum  { DECOMP_GRAM_SCHMIDT = 0, DECOMP_HALF_ANGLE, DECOMP_POLAR }
 

Public Slots

void slotComputePerVertex ()
 
void slotComputePerHalfedge ()
 
QString version ()
 

Signals

void updatedObject (int, const UpdateType &)
 
void addToolbox (QString _name, QWidget *_widget, QIcon *_icon)
 
- Signals inherited from BaseInterface
virtual void updateView ()
 Update current view in Main Application. More...
 
virtual void setSlotDescription (QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions)
 Set a description for a public slot. More...
 
virtual void setRenderer (unsigned int _viewer, QString _rendererName)
 Set a renderer for the given viewer. More...
 
- Signals inherited from ToolboxInterface
virtual void addToolbox (QString _name, QWidget *_widget)
 Add a toolbox widget to the gui with the given name. More...
 

Public Member Functions

QString name ()
 Return a name for the plugin. More...
 
QString description ()
 Return a description of what the plugin is doing. More...
 
float computeTriTBN (const ACG::Vec3f *_pos, const ACG::Vec2f *_texc, ACG::Vec3f *_outT, ACG::Vec3f *_outB, ACG::Vec3f *_outN, bool _divByDet=true)
 
float computeTriTBN (TriMesh *mesh, TriMesh::FaceHandle _fh, ACG::Vec3f *_outT, ACG::Vec3f *_outB, ACG::Vec3f *_outN, bool _divByDet=true)
 
float computeFaceTBN (PolyMesh *mesh, PolyMesh::FaceHandle _fh, ACG::Vec3f *_outT, ACG::Vec3f *_outB, ACG::Vec3f *_outN, bool _divByDet=true)
 
void computeWeightedTangentSpace (TriMesh *mesh, TriMesh::HalfedgeHandle _h, TangentBasis *_out)
 
void computeWeightedTangentSpace (PolyMesh *mesh, PolyMesh::HalfedgeHandle _h, TangentBasis *_out)
 
float computeParity (const ACG::Vec3f &t, const ACG::Vec3f &b, const ACG::Vec3f &n)
 
void getTriPos (TriMesh *_mesh, TriMesh::FaceHandle _h, ACG::Vec3f *_outPos)
 
float computeUVArea (TriMesh *_mesh, TriMesh::HalfedgeHandle _h)
 
void computePerVertexTangents (TriMesh *_mesh)
 
void computePerHalfedgeTangents (TriMesh *_mesh)
 
void getGUIConfig ()
 

Private Slots

void pluginsInitialized ()
 Set the scripting slot descriptions. More...
 

Private Attributes

bool weightByAngle_
 
bool weightByArea_
 
bool weightByUVArea_
 
QCheckBox * weightByAngleGUI_
 
QCheckBox * weightByAreaGUI_
 
QCheckBox * weightByUVAreaGUI_
 
bool overwriteVertexNormals_
 
QCheckBox * overwriteNormalsGUI_
 
bool preserveTextureSeams_
 
QCheckBox * preserveTextureSeamsGUI_
 
int decompMethod_
 
QComboBox * decompMethodGUI_
 
std::string propName_
 
QLineEdit * propNameGUI_
 

Additional Inherited Members

- Private Member Functions inherited from BaseInterface
virtual void noguiSupported ()
 
virtual ~BaseInterface ()
 Destructor.
 
virtual void blockScenegraphUpdates (bool _block)
 Tell the core to prevent scenegraph updates. More...
 
virtual void updatedObject (int _objectId)
 An object has been changed or added by this plugin. More...
 
virtual void updatedObject (int _identifier, const UpdateType &_type)
 An object has been changed or added by this plugin. More...
 
virtual void nodeVisibilityChanged (int _identifier)
 A scenegraph node has been shown or hidden. More...
 
virtual void getCurrentRenderer (unsigned int _viewer, QString &_rendererName)
 Get the current renderer for the given viewer. More...
 
- Private Member Functions inherited from ToolboxInterface
virtual ~ToolboxInterface ()
 Destructor.
 
virtual void addToolbox (QString _name, QWidget *_widget, QIcon *_icon)
 Add a toolbox widget to the gui with the given name and an icon. More...
 
virtual void addToolbox (QString _name, QWidget *_widget, QIcon *_icon, QWidget *_headerAreaWidget)
 Add a toolbox widget to the gui with the given name, icon and header area widget. More...
 

Detailed Description

Definition at line 60 of file TangentSpace.hh.

Member Function Documentation

QString TangentSpace::description ( )
inlinevirtual

Return a description of what the plugin is doing.

This function has to return a basic description of the plugin

Implements BaseInterface.

Definition at line 86 of file TangentSpace.hh.

QString TangentSpace::name ( )
inlinevirtual

Return a name for the plugin.

This Function has to return the name of the plugin.

Implements BaseInterface.

Definition at line 85 of file TangentSpace.hh.

void TangentSpace::pluginsInitialized ( )
privateslot

Set the scripting slot descriptions.

Definition at line 129 of file TangentSpace.cc.


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