$search
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 (const TomGine::tgModel &m) | |
| TrackerModel () | |
| 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 24 of file TrackerModel.h.
| typedef std::vector<Pass*> Tracking::TrackerModel::PassList |
Definition at line 49 of file TrackerModel.h.
| Tracking::TrackerModel::TrackerModel | ( | const TrackerModel & | m | ) | [private] |
| TrackerModel::TrackerModel | ( | ) |
Definition at line 12 of file TrackerModel.cpp.
| TrackerModel::TrackerModel | ( | const TomGine::tgModel & | m | ) |
Definition at line 78 of file TrackerModel.cpp.
| TrackerModel::~TrackerModel | ( | ) |
Definition at line 31 of file TrackerModel.cpp.
| void TrackerModel::computeBoundingSphere | ( | ) |
Definition at line 134 of file TrackerModel.cpp.
| void TrackerModel::computeEdges | ( | ) |
Definition at line 117 of file TrackerModel.cpp.
| void TrackerModel::drawCoordinates | ( | ) |
Definition at line 241 of file TrackerModel.cpp.
| void TrackerModel::drawEdges | ( | ) |
Definition at line 205 of file TrackerModel.cpp.
| void TrackerModel::drawFace | ( | int | i | ) |
Definition at line 210 of file TrackerModel.cpp.
| void TrackerModel::drawFaces | ( | bool | colorful = false |
) | [virtual] |
Definition at line 196 of file TrackerModel.cpp.
| void TrackerModel::drawNormals | ( | ) | [virtual] |
Definition at line 174 of file TrackerModel.cpp.
| void TrackerModel::drawPass | ( | bool | colorful = false |
) |
Definition at line 191 of file TrackerModel.cpp.
| void TrackerModel::drawTexturedFaces | ( | ) |
Definition at line 179 of file TrackerModel.cpp.
| void TrackerModel::drawUntexturedFaces | ( | ) |
Definition at line 186 of file TrackerModel.cpp.
| void TrackerModel::genListEdges | ( | ) |
Definition at line 875 of file TrackerModel.cpp.
| void TrackerModel::genListFaces | ( | bool | colorful = false |
) |
Definition at line 848 of file TrackerModel.cpp.
| void TrackerModel::genListNormals | ( | float | normal_length | ) |
Definition at line 915 of file TrackerModel.cpp.
| void TrackerModel::genListPass | ( | bool | colorful = false |
) |
Definition at line 755 of file TrackerModel.cpp.
| void TrackerModel::genListTexturedFaces | ( | ) |
Definition at line 695 of file TrackerModel.cpp.
| void TrackerModel::genListUntexturedFaces | ( | ) |
Definition at line 725 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 350 of file TrackerModel.cpp.
| float Tracking::TrackerModel::getBoundingSphereRadius | ( | ) | [inline] |
Definition at line 98 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 298 of file TrackerModel.cpp.
| Texture* Tracking::TrackerModel::getOriginalTexture | ( | ) | [inline] |
Definition at line 97 of file TrackerModel.h.
| Texture* Tracking::TrackerModel::getTexture | ( | ) | [inline] |
Definition at line 96 of file TrackerModel.h.
| bool Tracking::TrackerModel::getTextured | ( | ) | [inline] |
Definition at line 95 of file TrackerModel.h.
| bool TrackerModel::isRedundant | ( | TomGine::tgLine * | e1 | ) | [protected] |
Definition at line 605 of file TrackerModel.cpp.
| TrackerModel & TrackerModel::operator= | ( | const TrackerModel & | m | ) |
Definition at line 47 of file TrackerModel.cpp.
| TrackerModel& Tracking::TrackerModel::operator= | ( | const TomGine::tgModel & | m | ) | [private] |
| void TrackerModel::Print | ( | ) | const [virtual] |
Prints infos of model to console.
Reimplemented from TomGine::tgModel.
Definition at line 165 of file TrackerModel.cpp.
| void TrackerModel::releasePassList | ( | ) |
Definition at line 106 of file TrackerModel.cpp.
| void Tracking::TrackerModel::restoreTexture | ( | ) | [inline] |
Definition at line 104 of file TrackerModel.h.
| void Tracking::TrackerModel::setBFC | ( | bool | bfc | ) | [inline] |
Definition at line 101 of file TrackerModel.h.
| void Tracking::TrackerModel::setOriginalTexture | ( | Texture * | tex | ) | [inline] |
Definition at line 103 of file TrackerModel.h.
| void Tracking::TrackerModel::setTexture | ( | Texture * | tex | ) | [inline] |
Definition at line 102 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 391 of file TrackerModel.cpp.
| void TrackerModel::unwarpTexturesBox_hacky | ( | const char * | name | ) |
Definition at line 532 of file TrackerModel.cpp.
| void TrackerModel::Update | ( | ) |
Definition at line 148 of file TrackerModel.cpp.
| void TrackerModel::UpdateDisplayLists | ( | ) | [protected] |
Definition at line 647 of file TrackerModel.cpp.
| void TrackerModel::useTexCoords | ( | bool | useTC | ) |
Definition at line 524 of file TrackerModel.cpp.
bool Tracking::TrackerModel::m_bfc [protected] |
Definition at line 124 of file TrackerModel.h.
float Tracking::TrackerModel::m_boundingSphereRadius [protected] |
Definition at line 125 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlEdges [protected] |
Definition at line 119 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlFaces [protected] |
Definition at line 118 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlNormals [protected] |
Definition at line 120 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlPass [protected] |
Definition at line 117 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlTexturedFaces [protected] |
Definition at line 115 of file TrackerModel.h.
GLint Tracking::TrackerModel::m_dlUntexturedFaces [protected] |
Definition at line 116 of file TrackerModel.h.
| std::vector<int> Tracking::TrackerModel::m_facepixellist |
Definition at line 53 of file TrackerModel.h.
Definition at line 52 of file TrackerModel.h.
Shader* Tracking::TrackerModel::m_shadeTexturing [protected] |
Definition at line 122 of file TrackerModel.h.
int Tracking::TrackerModel::m_shadeTexturingID [protected] |
Definition at line 123 of file TrackerModel.h.
Definition at line 55 of file TrackerModel.h.
Definition at line 56 of file TrackerModel.h.
Definition at line 57 of file TrackerModel.h.