BoundaryPOVRay Class Reference

#include <BoundaryPOVRay.hpp>

Inheritance diagram for BoundaryPOVRay:

Inheritance graph
[legend]
Collaboration diagram for BoundaryPOVRay:

Collaboration graph
[legend]

List of all members.

Public Types

enum  Type {
  povRay, structured3DMesh, surfaceMesh, references,
  list
}

Public Member Functions

size_t numberOfPOVReferences () const
void addPOVReference (const TinyVector< 3, real_t > &povReference)
const TinyVector< 3, real_t > & povReference (const size_t &i) const
 BoundaryPOVRay (const BoundaryPOVRay &B)
 BoundaryPOVRay ()
 ~BoundaryPOVRay ()
const Boundary::Typetype () const
 Returns the type of the boundary.

Private Member Functions

void put (std::ostream &os) const

Private Attributes

std::vector< TinyVector
< 3, real_t > > 
__povReferences

Friends

std::ostream & operator<< (std::ostream &os, const Boundary &B)
 Writes the boundary conditions.


Detailed Description

Definition at line 34 of file BoundaryPOVRay.hpp.


Member Enumeration Documentation

enum Boundary::Type [inherited]

Enumerator:
povRay 
structured3DMesh 
surfaceMesh 
references 
list 

Definition at line 36 of file Boundary.hpp.

00036             {
00037     povRay,
00038     structured3DMesh,
00039     surfaceMesh,
00040     references,
00041     list
00042   };


Constructor & Destructor Documentation

BoundaryPOVRay::BoundaryPOVRay ( const BoundaryPOVRay B  )  [inline]

Copy constructor

Parameters:
B given BoundaryPOVRay

Definition at line 102 of file BoundaryPOVRay.hpp.

00103     : Boundary(B),
00104       __povReferences(B.__povReferences)
00105   {
00106     ;
00107   }

BoundaryPOVRay::BoundaryPOVRay (  )  [inline]

Constructor

Definition at line 113 of file BoundaryPOVRay.hpp.

00114     : Boundary(Boundary::povRay)
00115   {
00116     ;
00117   }

BoundaryPOVRay::~BoundaryPOVRay (  )  [inline]

Destructor

Definition at line 123 of file BoundaryPOVRay.hpp.

00124   {
00125     ;
00126   }


Member Function Documentation

void BoundaryPOVRay::put ( std::ostream &  os  )  const [inline, private, virtual]

Writes the BoundaryPOVRay to a stream

Parameters:
os output stream

Implements Boundary.

Definition at line 47 of file BoundaryPOVRay.hpp.

References __povReferences.

00047                                  {
00048     if (__povReferences.size() > 0) {
00049       os << " POVref:";
00050       for (size_t i=0; i<__povReferences.size(); ++i) {
00051         os << " <" << __povReferences[i][0]
00052            <<  ',' << __povReferences[i][1]
00053            <<  ',' << __povReferences[i][2] << '>';
00054       }
00055     }
00056   }

size_t BoundaryPOVRay::numberOfPOVReferences (  )  const [inline]

Read-only access to the number of POVRay references

Returns:
__povReferences.size()

Definition at line 64 of file BoundaryPOVRay.hpp.

References __povReferences.

Referenced by BoundaryMeshAssociation::setPOVMeshes().

00065   {
00066     return __povReferences.size();
00067   }

void BoundaryPOVRay::addPOVReference ( const TinyVector< 3, real_t > &  povReference  )  [inline]

Adds a POVRay reference.

Parameters:
povReference reference to add

Definition at line 74 of file BoundaryPOVRay.hpp.

References __povReferences.

00075   {
00076     for(size_t i=0; i<__povReferences.size(); ++i) {
00077       if (__povReferences[i] == povReference)
00078         return;
00079     }
00080     __povReferences.push_back(povReference);
00081   }

const TinyVector<3,real_t>& BoundaryPOVRay::povReference ( const size_t &  i  )  const [inline]

Read-only access to the ith POVRay reference.

Parameters:
i number of the reference
Returns:
ith POVRay reference

Definition at line 91 of file BoundaryPOVRay.hpp.

References __povReferences, and ASSERT.

Referenced by BoundaryMeshAssociation::setPOVMeshes().

00092   {
00093     ASSERT(i<__povReferences.size());
00094     return __povReferences[i];
00095   }

const Boundary::Type& Boundary::type (  )  const [inline, inherited]

Returns the type of the boundary.

Definition at line 52 of file Boundary.hpp.

References Boundary::__type.

Referenced by BoundaryMeshAssociation::setPOVMeshes().

00053   {
00054     return __type;
00055   }


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const Boundary B 
) [friend, inherited]

Writes the boundary conditions.

Definition at line 58 of file Boundary.hpp.

00060   {
00061     B.put(os);
00062     return os;
00063   }


Member Data Documentation

std::vector<TinyVector<3,real_t> > BoundaryPOVRay::__povReferences [private]

list of POV-Ray like boundary references (colors).

Definition at line 39 of file BoundaryPOVRay.hpp.

Referenced by addPOVReference(), numberOfPOVReferences(), povReference(), and put().


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

Generated on Wed Nov 19 00:04:57 2008 for FreeFEM3D (aka ff3d) by  doxygen 1.5.6