#include <Scale.hpp>


Public Member Functions | |
| TinyVector< 3, real_t > | operator() (const TinyVector< 3, real_t > &x) const |
| TinyVector< 3, real_t > | inverse (const TinyVector< 3, real_t > &x) const |
| std::string | povWrite () const |
| ReferenceCounting< Transform > | getCopy () const |
| Scale (const TinyVector< 3, real_t > &x) | |
| Scale (const Scale &S) | |
| ~Scale () | |
| const TransType & | type () const |
| virtual TinyVector< 3, real_t > | operator() (const TinyVector< 3 > &x) const =0 |
| virtual TinyVector< 3, real_t > | inverse (const TinyVector< 3 > &x) const =0 |
Protected Attributes | |
| const TransType | __type |
Private Attributes | |
| TinyVector< 3, real_t > | __scale |
Definition at line 38 of file Scale.hpp.
| Scale::Scale | ( | const TinyVector< 3, real_t > & | x | ) |
| Scale::Scale | ( | const Scale & | S | ) |
| Scale::~Scale | ( | ) | [inline] |
| TinyVector< 3, real_t > Scale::operator() | ( | const TinyVector< 3, real_t > & | x | ) | const |
| TinyVector< 3 > Scale::inverse | ( | const TinyVector< 3, real_t > & | x | ) | const |
Applies the inverse of a Scale to a vector
| x | given vector |
Definition at line 36 of file Scale.cpp.
References __scale.
00037 { 00038 TinyVector<3,real_t> temp = v; 00039 00040 temp[0] /= __scale[0]; 00041 temp[1] /= __scale[1]; 00042 temp[2] /= __scale[2]; 00043 00044 return temp; 00045 }
| std::string Scale::povWrite | ( | ) | const [virtual] |
Writes the POVRay expression to a stream
Implements Transform.
Definition at line 48 of file Scale.cpp.
References __scale.
00049 { 00050 std::stringstream povs; 00051 povs << "scale <" 00052 << __scale[0] 00053 << ", " 00054 << __scale[1] 00055 << ", " 00056 << __scale[2] 00057 << ">"; 00058 povs << std::ends; 00059 00060 return povs.str(); 00061 }
| ReferenceCounting< Transform > Scale::getCopy | ( | ) | const [virtual] |
| const TransType& Transform::type | ( | ) | const [inline, inherited] |
Read-only access to the type of the transformation.
Definition at line 60 of file Transform.hpp.
References Transform::__type.
00061 { 00062 return __type; 00063 }
| virtual TinyVector<3,real_t> Transform::operator() | ( | const TinyVector< 3 > & | x | ) | const [pure virtual, inherited] |
Applies the transformation to a point
| x | given point |
| virtual TinyVector<3,real_t> Transform::inverse | ( | const TinyVector< 3 > & | x | ) | const [pure virtual, inherited] |
Applies the inverse transformation to a point
| x | given point |
TinyVector<3,real_t> Scale::__scale [private] |
POVRay scale values
Definition at line 43 of file Scale.hpp.
Referenced by inverse(), operator()(), and povWrite().
const TransType Transform::__type [protected, inherited] |
1.5.6