3D Model with special methods for tracking and texturing More...
#include <TrackerModel.h>
Classes | |
| struct | Pass |
Public Types | |
| typedef std::vector< Pass * > | PassList |
Public Member Functions | |
| void | computeBoundingSphere () |
| void | computeEdges () |
| void | drawCoordinates () |
| void | drawEdges () |
| void | drawFace (int i) |
| virtual void | drawFaces (bool colorful=false) |
| virtual void | drawNormals () |
| void | drawPass (bool colorful=false) |
| void | drawTexturedFaces () |
| void | drawUntexturedFaces () |
| void | genListEdges () |
| void | genListFaces (bool colorful=false) |
| void | genListNormals (float normal_length) |
| void | genListPass (bool colorful=false) |
| void | genListTexturedFaces () |
| void | genListUntexturedFaces () |
| void | getBoundingBox2D (int width, int height, TomGine::tgPose &p_max, TomGine::tgCamera *m_cam, int &minX, int &maxX, int &minY, int &maxY) |
| float | getBoundingSphereRadius () |
| std::vector< unsigned > | getFaceUpdateList (TomGine::tgPose &p_max, vec3 view, float minTexGrabAngle=3.0 *PI/4.0, bool use_num_pixels=true) |
| Texture * | getOriginalTexture () |
| Texture * | getTexture () |
| bool | getTextured () |
| TrackerModel & | operator= (const TrackerModel &m) |
| virtual void | Print () const |
| Prints infos of model to console. | |
| void | releasePassList () |
| void | restoreTexture () |
| void | setBFC (bool bfc) |
| void | setOriginalTexture (Texture *tex) |
| void | setTexture (Texture *tex) |
| void | textureFromImage (Texture *image, int width, int height, TomGine::tgPose &p_max, vec3 view, float minTexGrabAngle, std::vector< unsigned > faceUpdateList, std::vector< TomGine::tgVertex > &vertices, TomGine::tgCamera *m_cam) |
| capture texture from image | |
| TrackerModel () | |
| TrackerModel (const TomGine::tgModel &m) | |
| void | unwarpTexturesBox_hacky (const char *name) |
| void | Update () |
| void | useTexCoords (bool useTC) |
| ~TrackerModel () | |
Public Attributes | |
| std::vector< int > | m_facepixellist |
| PassList | m_passlist |
| Texture * | m_tex_original |
| Texture * | m_texture |
| bool | m_textured |
Protected Member Functions | |
| bool | isRedundant (TomGine::tgLine *e1) |
| void | UpdateDisplayLists () |
Protected Attributes | |
| bool | m_bfc |
| float | m_boundingSphereRadius |
| GLint | m_dlEdges |
| GLint | m_dlFaces |
| GLint | m_dlNormals |
| GLint | m_dlPass |
| GLint | m_dlTexturedFaces |
| GLint | m_dlUntexturedFaces |
| Shader * | m_shadeTexturing |
| int | m_shadeTexturingID |
Private Member Functions | |
| TrackerModel & | operator= (const TomGine::tgModel &m) |
| TrackerModel (const TrackerModel &m) | |
3D Model with special methods for tracking and texturing
Definition at line 25 of file TrackerModel.h.
| typedef std::vector<Pass*> Tracking::TrackerModel::PassList |
Definition at line 50 of file TrackerModel.h.
| Tracking::TrackerModel::TrackerModel | ( | const TrackerModel & | m | ) | [private] |
Definition at line 13 of file TrackerModel.cpp.
| TrackerModel::TrackerModel | ( | const TomGine::tgModel & | m | ) |
Definition at line 79 of file TrackerModel.cpp.
Definition at line 32 of file TrackerModel.cpp.
| void TrackerModel::computeBoundingSphere | ( | ) |
Definition at line 135 of file TrackerModel.cpp.
| void TrackerModel::computeEdges | ( | ) |
Definition at line 118 of file TrackerModel.cpp.
| void TrackerModel::drawCoordinates | ( | ) |
Definition at line 242 of file TrackerModel.cpp.
| void TrackerModel::drawEdges | ( | ) |
Definition at line 206 of file TrackerModel.cpp.
| void TrackerModel::drawFace | ( | int | i | ) |
Definition at line 211 of file TrackerModel.cpp.
| void TrackerModel::drawFaces | ( | bool | colorful = false | ) | [virtual] |
Definition at line 197 of file TrackerModel.cpp.
| void TrackerModel::drawNormals | ( | ) | [virtual] |
Definition at line 175 of file TrackerModel.cpp.
| void TrackerModel::drawPass | ( | bool | colorful = false | ) |
Definition at line 192 of file TrackerModel.cpp.
| void TrackerModel::drawTexturedFaces | ( | ) |
Definition at line 180 of file TrackerModel.cpp.
| void TrackerModel::drawUntexturedFaces | ( | ) |
Definition at line 187 of file TrackerModel.cpp.
| void TrackerModel::genListEdges | ( | ) |
Definition at line 876 of file TrackerModel.cpp.
| void TrackerModel::genListFaces | ( | bool | colorful = false | ) |
Definition at line 849 of file TrackerModel.cpp.
| void TrackerModel::genListNormals | ( | float | normal_length | ) |
Definition at line 916 of file TrackerModel.cpp.
| void TrackerModel::genListPass | ( | bool | colorful = false | ) |
Definition at line 756 of file TrackerModel.cpp.
| void TrackerModel::genListTexturedFaces | ( | ) |
Definition at line 696 of file TrackerModel.cpp.
| void TrackerModel::genListUntexturedFaces | ( | ) |
Definition at line 726 of file TrackerModel.cpp.
| void TrackerModel::getBoundingBox2D | ( | int | width, |
| int | height, | ||
| TomGine::tgPose & | p_max, | ||
| TomGine::tgCamera * | m_cam, | ||
| int & | minX, | ||
| int & | maxX, | ||
| int & | minY, | ||
| int & | maxY | ||
| ) |
Definition at line 351 of file TrackerModel.cpp.
| float Tracking::TrackerModel::getBoundingSphereRadius | ( | ) | [inline] |
Definition at line 99 of file TrackerModel.h.
| vector< unsigned > TrackerModel::getFaceUpdateList | ( | TomGine::tgPose & | p_max, |
| vec3 | view, | ||
| float | minTexGrabAngle = 3.0*PI/4.0, |
||
| bool | use_num_pixels = true |
||
| ) |
Definition at line 299 of file TrackerModel.cpp.
| Texture* Tracking::TrackerModel::getOriginalTexture | ( | ) | [inline] |
Definition at line 98 of file TrackerModel.h.
| Texture* Tracking::TrackerModel::getTexture | ( | ) | [inline] |
Definition at line 97 of file TrackerModel.h.
| bool Tracking::TrackerModel::getTextured | ( | ) | [inline] |
Definition at line 96 of file TrackerModel.h.
| bool TrackerModel::isRedundant | ( | TomGine::tgLine * | e1 | ) | [protected] |
Definition at line 606 of file TrackerModel.cpp.
| TrackerModel& Tracking::TrackerModel::operator= | ( | const TomGine::tgModel & | m | ) | [private] |
| TrackerModel & TrackerModel::operator= | ( | const TrackerModel & | m | ) |
Definition at line 48 of file TrackerModel.cpp.
| void TrackerModel::Print | ( | ) | const [virtual] |
Prints infos of model to console.
Reimplemented from TomGine::tgModel.
Definition at line 166 of file TrackerModel.cpp.
| void TrackerModel::releasePassList | ( | ) |
Definition at line 107 of file TrackerModel.cpp.
| void Tracking::TrackerModel::restoreTexture | ( | ) | [inline] |
Definition at line 105 of file TrackerModel.h.
| void Tracking::TrackerModel::setBFC | ( | bool | bfc | ) | [inline] |
Definition at line 102 of file TrackerModel.h.
| void Tracking::TrackerModel::setOriginalTexture | ( | Texture * | tex | ) | [inline] |
Definition at line 104 of file TrackerModel.h.
| void Tracking::TrackerModel::setTexture | ( | Texture * | tex | ) | [inline] |
Definition at line 103 of file TrackerModel.h.
| void TrackerModel::textureFromImage | ( | Texture * | image, |
| int | width, | ||
| int | height, | ||
| TomGine::tgPose & | p_max, | ||
| vec3 | view, | ||
| float | minTexGrabAngle, | ||
| std::vector< unsigned > | faceUpdateList, | ||
| std::vector< TomGine::tgVertex > & | vertices, | ||
| TomGine::tgCamera * | m_cam | ||
| ) |
capture texture from image
Definition at line 392 of file TrackerModel.cpp.
| void TrackerModel::unwarpTexturesBox_hacky | ( | const char * | name | ) |
Definition at line 533 of file TrackerModel.cpp.
| void TrackerModel::Update | ( | ) |
Definition at line 149 of file TrackerModel.cpp.
| void TrackerModel::UpdateDisplayLists | ( | ) | [protected] |
Definition at line 648 of file TrackerModel.cpp.
| void TrackerModel::useTexCoords | ( | bool | useTC | ) |
Definition at line 525 of file TrackerModel.cpp.
bool Tracking::TrackerModel::m_bfc [protected] |
Definition at line 125 of file TrackerModel.h.
float Tracking::TrackerModel::m_boundingSphereRadius [protected] |
Definition at line 126 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlEdges [protected] |
Definition at line 120 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlFaces [protected] |
Definition at line 119 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlNormals [protected] |
Definition at line 121 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlPass [protected] |
Definition at line 118 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlTexturedFaces [protected] |
Definition at line 116 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlUntexturedFaces [protected] |
Definition at line 117 of file TrackerModel.h.
| std::vector<int> Tracking::TrackerModel::m_facepixellist |
Definition at line 54 of file TrackerModel.h.
Definition at line 53 of file TrackerModel.h.
Shader* Tracking::TrackerModel::m_shadeTexturing [protected] |
Definition at line 123 of file TrackerModel.h.
int Tracking::TrackerModel::m_shadeTexturingID [protected] |
Definition at line 124 of file TrackerModel.h.
Definition at line 56 of file TrackerModel.h.
Definition at line 57 of file TrackerModel.h.
Definition at line 58 of file TrackerModel.h.