db_planner::Model Class Reference

An object representing a model from the grasp database. More...

#include <model.h>

Inheritance diagram for db_planner::Model:
Inheritance graph
[legend]

List of all members.

Public Member Functions

const string & GeometryPath () const
const std::vector< int > & GetTriangles () const
const std::vector< double > & GetVertices () const
int ModelId () const
const string & ModelName () const
 Getter and Setters.
double RescaleFactor () const
double Scale () const
void SetGeometry (const std::vector< double > &vertices, const std::vector< int > &triangles)
void SetGeometryPath (const string &geometry_path)
void SetModelId (int id)
void SetModelName (const string &model_name)
void SetRescaleFactor (const double rescale_factor)
void SetScale (const double scale)
template<class Iterator >
void SetTags (const Iterator &start, const Iterator &end)
void SetThumbnailPath (const string &thumbnail_path)
const set< string > & Tags ()
const string & ThumbnailPath () const
virtual ~Model ()

Private Attributes

string geometry_path_
int model_id_
 The id of the model in the database.
string model_name_
 The name of the model and absolute paths to its geometry and to a thumbnail.
double rescale_factor_
double scale_
 The approximate radius of a ball that statistically contains the model.
set< string > tags_
 A set of descriptive tags associated with the model.
string thumbnail_path_
std::vector< int > triangles_
 The triangles of the model's mesh, if loaded directly from the database.
std::vector< double > vertices_
 The vertices of the model's mesh, if loaded directly from the database.

Detailed Description

An object representing a model from the grasp database.

A Model represents a 3D model in the database along with some associated information that is stored when the model is created rather than repeatedly querying the database.

Definition at line 45 of file model.h.


Constructor & Destructor Documentation

virtual db_planner::Model::~Model (  )  [inline, virtual]

Definition at line 60 of file model.h.


Member Function Documentation

const string& db_planner::Model::GeometryPath (  )  const [inline]

Definition at line 64 of file model.h.

const std::vector<int>& db_planner::Model::GetTriangles (  )  const [inline]

Definition at line 91 of file model.h.

const std::vector<double>& db_planner::Model::GetVertices (  )  const [inline]

Definition at line 90 of file model.h.

int db_planner::Model::ModelId (  )  const [inline]

Definition at line 67 of file model.h.

const string& db_planner::Model::ModelName (  )  const [inline]

Getter and Setters.

Definition at line 62 of file model.h.

double db_planner::Model::RescaleFactor (  )  const [inline]

Definition at line 66 of file model.h.

double db_planner::Model::Scale (  )  const [inline]

Definition at line 65 of file model.h.

void db_planner::Model::SetGeometry ( const std::vector< double > &  vertices,
const std::vector< int > &  triangles 
) [inline]

Definition at line 86 of file model.h.

void db_planner::Model::SetGeometryPath ( const string &  geometry_path  )  [inline]

Definition at line 74 of file model.h.

void db_planner::Model::SetModelId ( int  id  )  [inline]

Definition at line 68 of file model.h.

void db_planner::Model::SetModelName ( const string &  model_name  )  [inline]

Definition at line 70 of file model.h.

void db_planner::Model::SetRescaleFactor ( const double  rescale_factor  )  [inline]

Definition at line 78 of file model.h.

void db_planner::Model::SetScale ( const double  scale  )  [inline]

Definition at line 77 of file model.h.

template<class Iterator >
void db_planner::Model::SetTags ( const Iterator &  start,
const Iterator &  end 
) [inline]

Definition at line 82 of file model.h.

void db_planner::Model::SetThumbnailPath ( const string &  thumbnail_path  )  [inline]

Definition at line 71 of file model.h.

const set<string>& db_planner::Model::Tags (  )  [inline]

Definition at line 69 of file model.h.

const string& db_planner::Model::ThumbnailPath (  )  const [inline]

Definition at line 63 of file model.h.


Member Data Documentation

Definition at line 50 of file model.h.

The id of the model in the database.

Definition at line 48 of file model.h.

The name of the model and absolute paths to its geometry and to a thumbnail.

Definition at line 50 of file model.h.

Definition at line 52 of file model.h.

double db_planner::Model::scale_ [private]

The approximate radius of a ball that statistically contains the model.

Definition at line 52 of file model.h.

set<string> db_planner::Model::tags_ [private]

A set of descriptive tags associated with the model.

Definition at line 54 of file model.h.

Definition at line 50 of file model.h.

std::vector<int> db_planner::Model::triangles_ [private]

The triangles of the model's mesh, if loaded directly from the database.

Definition at line 58 of file model.h.

std::vector<double> db_planner::Model::vertices_ [private]

The vertices of the model's mesh, if loaded directly from the database.

Definition at line 56 of file model.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


graspit
Author(s):
autogenerated on Wed Jan 25 11:00:32 2012