#include <RobSphere.hxx>
Inheritance diagram for RayGina::CORE::RobSphere:

Public Member Functions | |
| virtual const RExtension * | getInstanceExtension () const |
| RobSphere (const RVec3r origin=RVec3r(0.0, 0.0, 0.0), const RReal radius=1.0) | |
| init a sphere with the given attributes | |
| virtual | ~RobSphere () |
| destructor | |
| void | setRadius (const RReal radius) |
| sets the radius of the sphere | |
| void | setOrigin (const RVec3r origin) |
| sets the origin of the sphere | |
| RReal | getRadius () const |
| returns the radius of the sphere | |
| RVec3r | getOrigin () const |
| return the origin of the sphere | |
| RssBase * | getSurfaceShader () const |
| Method to get the shader used for rendering the object. | |
| const RStatus | setSurfaceShader (RssBase *newShader) |
| return the origin of the sphere | |
| virtual const RStatus | setVolumeShader (RvsBase *newVolumeShader) |
| This methods sets the volume shader for the object that will be used when a valid intersection is found with this object. | |
| virtual RvsBase * | getVolumeShader () |
| virtual const RBool | intersect (RRay *ray) |
| returns true if there is an intersection with the object and the given | |
| virtual const RBool | occlude (const RRay *ray) |
| returns true if there is an intersection with the object and the given | |
| virtual const RVec3r | getNormal (RRay *ray) |
| get the normal from the object according to the given ray | |
| virtual const RVec2r | getUV (RRay *ray) |
| get the uv from the object according to the given ray | |
| virtual const RBool | getRenderObjects (RobAccelerator *renderlist) |
| returns true if there is an intersection with the object and the given | |
| virtual const RBool | intersectAABB (RobAABB *voxel) const |
| Check for intersections of the object with a given axis-aligned-box. | |
| virtual const RStatus | getBoundingAABB (RobAABB *theBB) const |
Static Public Member Functions | |
| const RExtension * | __getExtension () |
Static Private Member Functions | |
| RObject * | _createInstance () |
| RatStaticContainer * | _getAttributes () |
| const RStatus | _initialize (RatStaticContainer *attributes) |
Private Attributes | |
| RVec3r | _Origin |
| RReal | _radius |
| RReal | _squareRadius |
| RssBase * | _s_shader |
| RvsBase * | _v_shader |
Static Private Attributes | |
| const RExtension | _extensionData |
|
||||||||||||
|
init a sphere with the given attributes
Definition at line 47 of file RobSphere.hxx. |
|
|
destructor
Definition at line 51 of file RobSphere.hxx. |
|
|
Definition at line 40 of file RobSphere.hxx. |
|
|
Definition at line 16 of file RobSphere.hxx. |
|
|
Definition at line 20 of file RobSphere.hxx. |
|
|
Definition at line 23 of file RobSphere.hxx. |
|
|
Implements RayGina::CORE::RobGeometry. Definition at line 112 of file RobSphere.hxx. |
|
|
returns the RExtension for the instance If it returns NULL this instance is not able to act as an extension Implements RayGina::CORE::RObject. Definition at line 37 of file RobSphere.hxx. |
|
|
get the normal from the object according to the given ray returns the normal from the surface according to the last intersection tes with the given ray THE GIVEN RAY MUST BE THE SAME LIKE THE ONE YOU PERFORMED THE LAST INTESECTION TEST WITH THE OBJECT!! Implements RayGina::CORE::RobGeometry. Definition at line 63 of file RobSphere.cxx. |
|
|
return the origin of the sphere
Definition at line 67 of file RobSphere.hxx. |
|
|
returns the radius of the sphere
Definition at line 63 of file RobSphere.hxx. |
|
|
returns true if there is an intersection with the object and the given
Implements RayGina::CORE::RobGeometry. Definition at line 107 of file RobSphere.hxx. |
|
|
Method to get the shader used for rendering the object. Every object can use a separate shader, so you can use this method to get the stored shader for this object and so you can use it for shading calculations.
Implements RayGina::CORE::RobGeometry. Definition at line 71 of file RobSphere.hxx. |
|
|
get the uv from the object according to the given ray returns the uv from the surface according to the last intersection tes with the given ray THE GIVEN RAY MUST BE THE SAME LIKE THE ONE YOU PERFORMED THE LAST INTESECTION TEST WITH THE OBJECT!! Implements RayGina::CORE::RobGeometry. Definition at line 94 of file RobSphere.hxx. |
|
|
Definition at line 83 of file RobSphere.hxx. |
|
|
returns true if there is an intersection with the object and the given
Implements RayGina::CORE::RobGeometry. Definition at line 20 of file RobSphere.cxx. |
|
|
Check for intersections of the object with a given axis-aligned-box. Performs a intersection test with a axis-aligned bounding-volume Needed for generation of acceleration strcutures Implements RayGina::CORE::RobGeometry. Definition at line 77 of file RobSphere.cxx. |
|
|
returns true if there is an intersection with the object and the given
Implements RayGina::CORE::RobGeometry. Definition at line 42 of file RobSphere.cxx. |
|
|
sets the origin of the sphere
Definition at line 58 of file RobSphere.hxx. |
|
|
sets the radius of the sphere
Definition at line 54 of file RobSphere.hxx. |
|
|
return the origin of the sphere
Implements RayGina::CORE::RobGeometry. Definition at line 75 of file RobSphere.hxx. |
|
|
This methods sets the volume shader for the object that will be used when a valid intersection is found with this object. attach a shader to the object, the previous one will be overwritten (BUT NOT DELETED!) (ONLY 1 shader per object)
Implements RayGina::CORE::RobGeometry. Definition at line 79 of file RobSphere.hxx. |
|
|
Initial value: RExtension(RExtension::SUPERCLASSID_PRIMITIVE,
1004,
1,
1,
"Sphere",
"RobSphere",
"rayGina::CORE::Team",
"core@raygina.de",
"www.raygina.de",
RobSphere::_createInstance,
RobSphere::_initialize)
Definition at line 8 of file RobSphere.cxx. |
|
|
Definition at line 30 of file RobSphere.hxx. |
|
|
Definition at line 31 of file RobSphere.hxx. |
|
|
Definition at line 33 of file RobSphere.hxx. |
|
|
Definition at line 32 of file RobSphere.hxx. |
|
|
Definition at line 34 of file RobSphere.hxx. |
1.3.9.1