ch.randelshofer.geom3d
Class TransformNode3D
java.lang.Object
ch.randelshofer.geom3d.TransformNode3D
- All Implemented Interfaces:
- Node3D
- Direct Known Subclasses:
- Scene3D
public class TransformNode3D
- extends java.lang.Object
- implements Node3D
This node applies its Transform3D to all its children.
- Version:
- 2.0 2009-01-04 Migrated to Java 1.5.
1.0 2008-09-16 Renamed from TransformNode to TransformNode3D.
0.1 2000-02-28 Created.
- Author:
- Werner Randelshofer, Hausmatt 10, CH-6405 Immensee, Switzerland
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransformNode3D
public TransformNode3D()
addChild
public void addChild(Node3D child)
getChild
public Node3D getChild(int index)
setTransform
public void setTransform(Transform3D transform)
getTransform
public Transform3D getTransform()
setVisible
public void setVisible(boolean b)
addVisibleFacesTo
public void addVisibleFacesTo(java.util.List<Face3D> v,
Transform3D t,
Point3D observer)
- Adds all faces to the vector that are visible when
this Shape3D is transformed by the given Transform3D.
The transform is applied to the faces before they are
added to the list.
- Specified by:
addVisibleFacesTo in interface Node3D
- Parameters:
v - The list to which the faces are added.t - This transform is applied to the faces
before they are tested for visibility
and added to the vector.observer - Coords of the observer.