Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions
Tracking::TrackerModel Class Reference

3D Model with special methods for tracking and texturing More...

#include <TrackerModel.h>

Inheritance diagram for Tracking::TrackerModel:
Inheritance graph
[legend]

List of all members.

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)
TexturegetOriginalTexture ()
TexturegetTexture ()
bool getTextured ()
TrackerModeloperator= (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
Texturem_tex_original
Texturem_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
Shaderm_shadeTexturing
int m_shadeTexturingID

Private Member Functions

TrackerModeloperator= (const TomGine::tgModel &m)
 TrackerModel (const TrackerModel &m)

Detailed Description

3D Model with special methods for tracking and texturing

Definition at line 24 of file TrackerModel.h.


Member Typedef Documentation

Definition at line 49 of file TrackerModel.h.


Constructor & Destructor Documentation

Definition at line 13 of file TrackerModel.cpp.

Definition at line 79 of file TrackerModel.cpp.

Definition at line 32 of file TrackerModel.cpp.


Member Function Documentation

Definition at line 135 of file TrackerModel.cpp.

Definition at line 118 of file TrackerModel.cpp.

Definition at line 242 of file TrackerModel.cpp.

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.

Definition at line 180 of file TrackerModel.cpp.

Definition at line 187 of file TrackerModel.cpp.

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.

Definition at line 696 of file TrackerModel.cpp.

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.

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 299 of file TrackerModel.cpp.

Definition at line 97 of file TrackerModel.h.

Definition at line 96 of file TrackerModel.h.

Definition at line 95 of file TrackerModel.h.

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.

Definition at line 107 of file TrackerModel.cpp.

Definition at line 104 of file TrackerModel.h.

void Tracking::TrackerModel::setBFC ( bool  bfc) [inline]

Definition at line 101 of file TrackerModel.h.

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 392 of file TrackerModel.cpp.

void TrackerModel::unwarpTexturesBox_hacky ( const char *  name)

Definition at line 533 of file TrackerModel.cpp.

Definition at line 149 of file TrackerModel.cpp.

void TrackerModel::UpdateDisplayLists ( ) [protected]

Definition at line 648 of file TrackerModel.cpp.

Definition at line 525 of file TrackerModel.cpp.


Member Data Documentation

Definition at line 124 of file TrackerModel.h.

Definition at line 125 of file TrackerModel.h.

Definition at line 119 of file TrackerModel.h.

Definition at line 118 of file TrackerModel.h.

Definition at line 120 of file TrackerModel.h.

Definition at line 117 of file TrackerModel.h.

Definition at line 115 of file TrackerModel.h.

Definition at line 116 of file TrackerModel.h.

Definition at line 53 of file TrackerModel.h.

Definition at line 52 of file TrackerModel.h.

Definition at line 122 of file TrackerModel.h.

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.


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


blort
Author(s): Michael Zillich, Thomas Mörwald, Johann Prankl, Andreas Richtsfeld, Bence Magyar (ROS version)
autogenerated on Thu Jan 2 2014 11:38:27