|
ProjectedTextures
Prototype software for spacial augmented reality applications.
|
#include <Geometry.h>
Public Slots | |
| void | scale (float factor) |
| void | setScale (float absScale) |
| void | setTranslation (float x, float y, float z) |
| void | setRotation (QQuaternion rotation) |
| void | setRotation (float x, float y, float z) |
| void | setActiveColorSet (int layer) |
Public Member Functions | |
| Geometry (QString name, QString filename, QVector< ColorSetInfo > colorSetInfos, bool renderOnProjector=true) | |
| ~Geometry (void) | |
| void | setInherentTransform (Similarity inherentTransform) |
| QString | getName () |
| QString | getFilename (bool wholePath) |
| bool | isValid () |
| bool | isRenderedOnProjector () |
| int | getActiveColorSet () |
| QMatrix4x4 | getModelMatrix () |
| Similarity | getInherentTransform () |
| QVector< QVector4D > * | getPositions () |
| QVector< QVector3D > * | getNormals () |
| QVector< QVector2D > * | getUvs () |
| QVector< GLuint > * | getIndices () |
| QVector< QVector4D > * | getVertexColors (int layer) |
| QVector< ColorSetInfo > * | getColorSetInfos () |
| bool | hasNormals () |
| bool | hasUvs () |
| bool | hasVertexColors () |
| int | numVertices () |
| int | numIndices () |
| int | numColorSets () |
Public Member Functions inherited from Trackable | |
| Trackable () | |
| virtual | ~Trackable (void) |
| void | addTracker (Tracker *tracker) |
| int | getId () |
| QMatrix4x4 | getPoseMat () |
| Similarity | getPose () |
| bool | isTracked () |
| void | updatePose () |
Protected Member Functions | |
| void | freeAssimpScene () |
Protected Attributes | |
| QString | name |
| QString | filename |
| Assimp::Importer | importer |
| SceneDestroyer * | sd |
| bool | valid |
| bool | renderOnProjector |
| QVector< QVector4D > | positions |
| QVector< QVector3D > | normals |
| QVector< QVector2D > | uvs |
| QVector< GLuint > | indices |
| QVector< QVector< QVector4D > > | vertexColors |
| QVector< ColorSetInfo > | colorSetInfos |
| Similarity | inherentTransform |
| int | activeColorSet |
Protected Attributes inherited from Trackable | |
| int | id |
| QList< Tracker * > | trackers |
| Similarity | pose |
| clock_t | timeOfLastTrack |
| float | trackingTimeout |
Additional Inherited Members | |
Static Protected Attributes inherited from Trackable | |
| static int | numTrackables |
A virtual object that can be displayed and used for augmentation
| Geometry::Geometry | ( | QString | name, |
| QString | filename, | ||
| QVector< ColorSetInfo > | colorSetInfos, | ||
| bool | renderOnProjector = true |
||
| ) |
| a | descriptive name of the object |
| filename | full path to geometry file |
| colorSetInfos | meta-data for the color sets that come with the model (description, which color means what) |
| renderOnProjector | render the object on projector? |
| Geometry::~Geometry | ( | void | ) |
|
inlineprotected |
frees memory used by assimp while importing the scene. runs on own thread and may take a while; application may crash if closed before this is finished.
|
inline |
returns the index of the currently displayed color set
|
inline |
returns the whole collection of colorset infos
| QString Geometry::getFilename | ( | bool | wholePath) |
returns the path to the used geometry file, or just the filename
|
inline |
returns the triangle indices for rendering
|
inline |
returns only the inherent transformation (See inherentTransform)
| QMatrix4x4 Geometry::getModelMatrix | ( | ) |
returns the current estimated global model matrix, including the inherent transformation
|
inline |
returns the object's name
|
inline |
returns the vertex normals for rendering
|
inline |
returns the vertex positions for rendering
|
inline |
returns the vertex UVs for rendering
| QVector< QVector4D > * Geometry::getVertexColors | ( | int | layer) |
returns a set of vertex colors for rendering
| layer | inxed of the desired color set |
|
inline |
are normals included in the data?
|
inline |
are uvs included in the data?
|
inline |
are vertex colors included in the data?
|
inline |
render the object on projector?
|
inline |
tells you if the geometry has been successfully importet
|
inline |
returns the number of available color sets
|
inline |
returns the number of triangle indices
|
inline |
returns the total number of vertices
|
slot |
scales the object by a factor
|
slot |
sets the current color set index
|
inline |
| inherentTransform | new value |
|
slot |
sets the object's tracked rotation (quaternion)
|
slot |
sets the object's tracked rotation (euler angles)
|
slot |
sets an absolute new scale for the object
|
slot |
sets the object's tracked position
|
protected |
index of the currently displayed color set
|
protected |
meta-info of color sets for display in GUI
|
protected |
full path to the geometry data in use
|
protected |
an instance of the "Assimp" asset importer
|
protected |
triangle indices for rendering
|
protected |
the offset between the model's origin and the origin of the tracked marker/whatever that is attached to the object
|
protected |
a descriptive name of the object
|
protected |
vertex normals for rendering
|
protected |
vertex positions for rendering
|
protected |
should the geometry be rendered on a projector?
|
protected |
a helper thread for cleaning up memory after import
|
protected |
vertex uvs for rendering
|
protected |
has the geometry been successfully imported
|
protected |
sets of vertex colors for rendering (max 8)
1.8.4