Mesh::Obj Class Reference

The Obj class is an object with a set of surfaces. More...

#include <mesh.h>

List of all members.

Public Member Functions

 Obj ()
 The construtor specifies a Obj class.
 ~Obj ()
 The Obj class destructor. Don't forget to delete the surface afterwards.
SurfIter surfs_begin ()
 Returns iterator that points to the first surface of object.
SurfIter surfs_end ()
 Returns iterator that points to the last surface of the mesh.
bool add_surf (Surf *s)
 Adds a surface.
void rm_surf (Surf *s)
 Removes a surface from Obj.

Private Attributes

SurfContainer sc_
 Set of surfaces.


Detailed Description

The Obj class is an object with a set of surfaces.

Definition at line 91 of file mesh.h.


Constructor & Destructor Documentation

Mesh::Obj::Obj  )  [inline]
 

The construtor specifies a Obj class.

Definition at line 97 of file mesh.h.

00097 {};

Mesh::Obj::~Obj  )  [inline]
 

The Obj class destructor. Don't forget to delete the surface afterwards.

Definition at line 102 of file mesh.h.

00102 {};


Member Function Documentation

bool Mesh::Obj::add_surf Surf s  )  [inline]
 

Adds a surface.

Parameters:
s surface pointer.
Returns:
true if add operation was completed, else return false.

Definition at line 115 of file mesh.h.

References sc_.

00115 { std::pair<SurfIter, bool> r = sc_.insert(s); return r.second; }

void Mesh::Obj::rm_surf Surf s  )  [inline]
 

Removes a surface from Obj.

Parameters:
s surface pointer.

Definition at line 119 of file mesh.h.

References sc_.

00119 { sc_.erase(s); };

SurfIter Mesh::Obj::surfs_begin  )  [inline]
 

Returns iterator that points to the first surface of object.

Returns:
surface iterator.

Definition at line 106 of file mesh.h.

References sc_.

00106 { return sc_.begin(); };

SurfIter Mesh::Obj::surfs_end  )  [inline]
 

Returns iterator that points to the last surface of the mesh.

Returns:
surface iterator.

Definition at line 110 of file mesh.h.

References sc_.

00110 { return sc_.end(); };


Member Data Documentation

SurfContainer Mesh::Obj::sc_ [private]
 

Set of surfaces.

Definition at line 93 of file mesh.h.

Referenced by add_surf(), rm_surf(), surfs_begin(), and surfs_end().


The documentation for this class was generated from the following file:
Generated on Fri Feb 24 12:23:23 2006 for TOPs by  doxygen 1.4.6-NO