#include <Object.hpp>

Public Member Functions | |
| const bool & | hasReference () const |
| const TinyVector< 3 > & | reference () const |
| ConstReferenceCounting< Shape > | shape () const |
| bool | inside (const TinyVector< 3, real_t > &x) const |
| void | setReference (const TinyVector< 3, real_t > &aReference) |
| ReferenceCounting< Object > | getCopy () const |
| Object (ConstReferenceCounting< Shape > s) | |
| Object (const Object &o) | |
| ~Object () | |
Private Attributes | |
| ConstReferenceCounting< Shape > | __shape |
| bool | __hasReference |
| TinyVector< 3, real_t > | __reference |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Object &o) |
Definition at line 37 of file Object.hpp.
| Object::Object | ( | ConstReferenceCounting< Shape > | s | ) | [inline] |
Constructs an object using a given shape
| s | the given shape |
Definition at line 135 of file Object.hpp.
Referenced by getCopy().
00136 : __shape(s), 00137 __hasReference(false), 00138 __reference(0) 00139 { 00140 ; 00141 }
| Object::Object | ( | const Object & | o | ) | [inline] |
Constructs an object using another object
| o | a given object |
Definition at line 148 of file Object.hpp.
00149 : __shape(o.__shape->getCopy()), 00150 __hasReference(o.__hasReference), 00151 __reference(o.__reference) 00152 { 00153 ; 00154 }
| Object::~Object | ( | ) | [inline] |
| const bool& Object::hasReference | ( | ) | const [inline] |
returns the reference state of the object
Definition at line 69 of file Object.hpp.
References __hasReference.
Referenced by Domain::__buildReferenceAssociation(), and ObjectTransformer::operator()().
00070 { 00071 return __hasReference; 00072 }
| const TinyVector<3>& Object::reference | ( | ) | const [inline] |
Access to the reference of the object
Definition at line 79 of file Object.hpp.
References __hasReference, __reference, and ASSERT.
Referenced by Domain::__buildReferenceAssociation(), and ObjectTransformer::operator()().
00080 { 00081 ASSERT(__hasReference); 00082 return __reference; 00083 }
| ConstReferenceCounting<Shape> Object::shape | ( | ) | const [inline] |
Read only access to the shape of the object
Definition at line 90 of file Object.hpp.
References __shape, and ASSERT.
Referenced by Domain::__buildReferenceAssociation(), and ObjectTransformer::operator()().
| bool Object::inside | ( | const TinyVector< 3, real_t > & | x | ) | const [inline] |
Computes if a vertex is inside the object
| x | the given vertex |
Definition at line 103 of file Object.hpp.
References __shape.
00104 { 00105 return __shape->inside(x); 00106 }
| void Object::setReference | ( | const TinyVector< 3, real_t > & | aReference | ) | [inline] |
Sets the reference object
| aReference | the given reference |
Definition at line 113 of file Object.hpp.
References __hasReference, __reference, and ASSERT.
Referenced by InsideListExpressionLeaf::objects(), and ObjectTransformer::operator()().
00114 { 00115 ASSERT(__hasReference == false); 00116 __hasReference = true; 00117 __reference = aReference; 00118 }
| ReferenceCounting<Object> Object::getCopy | ( | ) | const [inline] |
| std::ostream& operator<< | ( | std::ostream & | os, | |
| const Object & | o | |||
| ) | [friend] |
Writes the object information in a given stream
| os | the given stream | |
| o | the object to write |
Definition at line 57 of file Object.hpp.
00059 { 00060 os << (*o.__shape) << '\n'; 00061 return os; 00062 }
ConstReferenceCounting<Shape> Object::__shape [private] |
bool Object::__hasReference [private] |
true if the object has a reference
Definition at line 43 of file Object.hpp.
Referenced by hasReference(), reference(), and setReference().
TinyVector<3,real_t> Object::__reference [private] |
the POV-Ray reference of the object
Definition at line 46 of file Object.hpp.
Referenced by reference(), and setReference().
1.5.6