#include <object3d.h>
Inheritance diagram for Object3D:

Public Member Functions | |
| Object3D () | |
| Object3D (Vector3 location) | |
| virtual void | translate (const Vector3 &v) |
| virtual void | scale (const Vector3 &v) |
| virtual void | rotateDeg (const Vector3 &v) |
| virtual void | rotateRad (const Vector3 &v) |
| virtual void | applyOrthogonalMatrix (const Matrix &m) |
| virtual void | applyMatrix (const Matrix &m) |
| virtual void | transform (const TransparentTransformatable &t) |
| virtual void | transformInverse (const TransparentTransformatable &t) |
| virtual bool | hasFinitBounding () const |
| virtual Vector3 | getBoundingMin () const |
| virtual Vector3 | getBoundingMax () const |
| virtual DBL | intersectBounding (const Ray &r) const |
| virtual DBL | intersectBounding (const Ray &r, DBL tmax) const |
| virtual Intersection * | intersect (const Ray &r) const |
| virtual Intersection * | intersectLimitedTime (const Ray &r, DBL maxtime) const |
| void | setMaterial (const Material3D &m) |
| void | setTexture (const Texture3D &t) |
| void | setPigment (const Pigment3D &p) |
| void | setFinish (const Finish &f) |
| void | setInterior (const Interior &i) |
| void | setMedia (const Media3D &m) |
| virtual Object3D * | invert () const |
| virtual PatchObject * | toPatch (double precision) const |
| virtual void | listInside (const Vector3 &location, InsideList &l) const |
| bool | isInsideAtBounded (Vector3 location) const |
| bool | isInverse () const |
Public Attributes | |
| Material3D * | material |
Protected Member Functions | |
| Object3D (const Object3D &o) | |
| virtual Intersection * | intersectLocal (const Ray &r) const |
| virtual Intersection * | intersectLocalLimitedTime (const Ray &r, DBL maxtime) const =0 |
| virtual bool | isInsideAt (const Vector3 &locallocation) const =0 |
Protected Attributes | |
| BoundingBox * | boundingbox |
| bool | inverse |
|
|
Constructs an object at origin. Material defaults to 0 and object not inversed. |
|
|
Constructs an object at given position. Material defaults to 0 and object not inversed.
|
|
|
Copy constructor. |
|
|
Transform by non-singular matrix.
Reimplemented from TransparentTransformatable.
|
|
|
Transform by orthogonal matrix.
Reimplemented from TransparentTransformatable.
|
|
|
Get bounding dimension (maximum edge). Implements SurfacePatch3D.
Reimplemented in Box, and Sphere.
|
|
|
Get bounding dimension (minimum edge). Implements SurfacePatch3D.
Reimplemented in Box, and Sphere.
|
|
|
Returns true if the surface can be enclosed by a finit box. Implements SurfacePatch3D.
Reimplemented in Box, and Sphere.
|
|
|
Intersect object with ray.
Reimplemented from SurfacePatch3D.
|
|
||||||||||||
|
Intersect Bounding with Ray limited to maximum time.
Implements SurfacePatch3D.
|
|
|
Intersect Bounding with Ray.
Implements SurfacePatch3D.
|
|
||||||||||||
|
Intersect object with ray limited to maximum time.
Implements SurfacePatch3D.
|
|
|
Inverse the object.
|
|
|
Test point for insideness.
Implemented in Box, Cylinder, Isosurface, Plane, and Sphere.
|
|
|
Test point for insidness.
|
|
|
|
|
||||||||||||
|
Create insidness list. Adds the object (or all subcomponents in the case of a container object) to the given list if the location is inside.
|
|
|
Rotate around x,y and z axis.
Reimplemented from TransparentTransformatable.
Reimplemented in Box, and Sphere.
|
|
|
Rotate around x,y and z axis.
Reimplemented from TransparentTransformatable.
Reimplemented in Box, and Sphere.
|
|
|
Scale by x,y,z factor from vector. Reimplemented from TransparentTransformatable.
Reimplemented in Box, and Sphere.
|
|
|
Set / override object's finish.
|
|
|
Set / override object's interior.
|
|
|
Set / override object's material.
|
|
|
Set / override object's media.
|
|
|
Set / override object's pigment.
|
|
|
Set / override object's texture.
|
|
|
Creates an approximatly equivalent object out of 'patches'. Returns
Reimplemented in Sphere.
|
|
|
Transform the same way as given Transformatable. Reimplemented from TransparentTransformatable.
|
|
|
Transform inverse as given Transformatble. Reimplemented from TransparentTransformatable.
|
|
|
Translate by vector. Reimplemented from TransparentTransformatable.
Reimplemented in Box.
|
|
|
The object's bounding box. |
|
|
Holds the object's inverting status. True means inversed. Reimplemented from TransparentTransformatable.
|
|
|
The object's material. |
1.3.8