#include <BoundaryPOVRay.hpp>


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::Type & | type () 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. | |
Definition at line 34 of file BoundaryPOVRay.hpp.
enum Boundary::Type [inherited] |
Definition at line 36 of file Boundary.hpp.
00036 { 00037 povRay, 00038 structured3DMesh, 00039 surfaceMesh, 00040 references, 00041 list 00042 };
| BoundaryPOVRay::BoundaryPOVRay | ( | const BoundaryPOVRay & | B | ) | [inline] |
Copy constructor
| 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] |
| void BoundaryPOVRay::put | ( | std::ostream & | os | ) | const [inline, private, virtual] |
Writes the BoundaryPOVRay to a stream
| 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
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.
| 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.
| i | number of the 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 }
| 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 }
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().
1.5.6