Package | Description |
---|---|
com.threed.jpct | |
com.threed.jpct.util |
Modifier and Type | Method and Description |
---|---|
Object3D |
Object3D.cloneObject()
Clones the current object.
|
static Object3D |
Object3D.createDummyObj()
Static method that creates a dummy Object3D.
|
static Object3D |
Primitives.getBox(float scale,
float scaleHeight)
Returns a box (a 3-dimensional rectangle)
|
static Object3D |
Primitives.getCone(float scale)
Returns a cone with 90 faces.
|
static Object3D |
Primitives.getCone(int faces,
float scale)
Returns a cone with the given number of faces.
|
static Object3D |
Primitives.getCone(int faces,
float scale,
float scaleHeight)
Returns a cone with the given number of faces.
|
static Object3D |
Primitives.getCube(float scale)
Returns a cube
|
static Object3D |
Primitives.getCylinder(float scale)
Returns a cylinder with 90 faces.
|
static Object3D |
Primitives.getCylinder(int faces,
float scale)
Returns a cylinder with the given number of faces.
|
static Object3D |
Primitives.getCylinder(int faces,
float scale,
float scaleHeight)
Returns a cylinder with the given number of faces.
|
static Object3D |
Primitives.getDoubleCone(float scale)
Returns a double cone with 90 faces.
|
static Object3D |
Primitives.getDoubleCone(int faces,
float scale)
Returns a double cone with the given number of faces.
|
static Object3D |
Primitives.getEllipsoid(float scale,
float scaleHeight)
Returns an ellipsoid with 20 faces.
|
static Object3D |
Primitives.getEllipsoid(int faces,
float scale,
float scaleHeight)
Returns an ellipsoid with he given number of faces.
|
Object3D |
CollisionEvent.getObject()
Returns the Object3D that has caused the event (i.e. to which this
Listener has been added).
|
Object3D |
World.getObject(int id)
Returns the object with the given ID from the World's object collection.
|
Object3D |
World.getObjectByName(java.lang.String name)
Returns the object named "name" from the World's object collection.
|
Object3D |
Polyline.getParent()
Returns the parent object.
|
Object3D[] |
Object3D.getParents()
Returns all parents of this Object3D in an array.
|
static Object3D |
Primitives.getPlane(int quads,
float scale)
Returns a plane consisting of (quads^2)*2 polygons each "scale" units in
size.
|
static Object3D |
Primitives.getPyramide(float scale)
Returns a pyramide
|
static Object3D |
Primitives.getPyramide(float scale,
float scaleHeight)
Returns a pyramide
|
Object3D |
CollisionEvent.getSource()
Returns the source of the collision, if it's an Object3D (or null
otherwise).
|
static Object3D |
Primitives.getSphere(float scale)
Returns a sphere with 20 faces.
|
static Object3D |
Primitives.getSphere(int faces,
float scale)
Returns a sphere with the given number of faces.
|
Object3D[] |
CollisionEvent.getTargets()
Returns the target objects that are involved in this collision.
|
static Object3D[] |
Loader.load3DS(java.io.InputStream stream,
float scale)
Loads a file in 3DS-format into an array of objects. 3DS is a 3D-Studio
format supported by many converter tools.
|
static Object3D |
Loader.loadASC(java.io.InputStream stream,
float scale,
boolean swap)
Loads a file in ASC-format into an object.
|
static Object3D |
Loader.loadMD2(java.io.InputStream stream,
float newScale)
Loads an object out of a file in MD2-format (Quake2 model format).
|
static Object3D[] |
Loader.loadOBJ(java.io.InputStream objStream,
java.io.InputStream mtlStream,
float scale)
Loads a file in OBJ-format into an array of objects.
|
static Object3D |
Loader.loadSerializedObject(java.io.InputStream is)
Loads an object in serialized format.
|
static Object3D[] |
Loader.loadSerializedObjectArray(java.io.InputStream is)
Loads an object-array in serialized format.
|
static Object3D |
Object3D.mergeAll(Object3D... objs)
Merges all objects in the array into one large object.
|
static Object3D |
Object3D.mergeObjects(Object3D first,
Object3D second)
Static method that merges two objects into a third one.
|
Modifier and Type | Method and Description |
---|---|
java.util.Enumeration<Object3D> |
World.getObjects()
Returns an Enumeration of all user defined objects in this world.
|
Modifier and Type | Method and Description |
---|---|
void |
Object3D.addChild(Object3D obj)
Defines an object as a child of this.
|
int |
World.addObject(Object3D obj)
Adds an object to the World's object collection.
|
void |
World.addObjects(Object3D... objs)
Adds all objects from the given array to the world.
|
void |
Object3D.addParent(Object3D obj)
Defines an object as a parent of this. this will inherit all
transformations from its parent and no other attributes.
|
void |
Camera.align(Object3D object)
Aligns the camera with the (transformed) positive z-axis of an Object3D.
|
void |
Object3D.align(Object3D object)
Aligns this object with another Object3D.
|
boolean |
World.containsObject(Object3D obj)
Returns true, if an Object3D belongs to this world and false otherwise.
|
boolean |
Object3D.hasChild(Object3D obj)
Tests an object for being a child object of the current object.
|
boolean |
Object3D.hasParent(Object3D obj)
Tests an object for being a parent object of the current object.
|
static Object3D |
Object3D.mergeAll(Object3D... objs)
Merges all objects in the array into one large object.
|
static Object3D |
Object3D.mergeObjects(Object3D first,
Object3D second)
Static method that merges two objects into a third one.
|
static SimpleVector |
Interact2D.projectCenter3D2D(Camera camera,
FrameBuffer buffer,
Object3D obj)
Gets the center of the object in screen-coordinates (2D) by transforming
and projecting it from 3D objectspace into 2D screenspace.
|
static SimpleVector |
Interact2D.projectCenter3D2D(FrameBuffer buffer,
Object3D obj)
Gets the center of the object in screen-coordinates (2D) by transforming
and projecting it from 3D objectspace into 2D screenspace.
|
void |
Object3D.removeChild(Object3D obj)
Removes an object from the child-collection of this.
|
void |
World.removeObject(Object3D obj)
Removes the given object from the World's object collection.
|
void |
Object3D.removeParent(Object3D obj)
Removes an object from the parent-collection of this.
|
void |
IRenderHook.setCurrentObject3D(Object3D obj)
Sets the currently rendered object.
|
void |
Polyline.setParent(Object3D obj)
Sets a parent object.
|
void |
Camera.setPositionToCenter(Object3D object)
Sets the camera to the position of the transformed center of an Object3D.
|
void |
Object3D.shareCompiledData(Object3D withObj)
Enables a compiled object to share data with another compiled one.
|
void |
Object3D.shareTextureData(Object3D source)
In addition to sharing the actual mesh data, you can also make objects
share the same texturing information (the actual textures, not the
uv-coordinates).
|
Constructor and Description |
---|
Object3D(Object3D obj)
This constructor works similar to cloneObject() but it allows to extend
Object3D and still use the static methods from Loader/Primitives by
adding a call to super(Object3D) in the constructor of your class.
|
Object3D(Object3D obj,
boolean reuseMesh)
This constructor works similar to cloneObject() but it allows to extend
Object3D and still use the static methods from Loader/Primitives by
adding a call to super(Object3D) in the constructor of your class.
|
OcTree(Object3D obj,
int maxPoly,
int mode)
Builds a new octree from an Object3D.
|
OcTree(Object3D obj,
int maxPoly,
int maxDepth,
int mode)
Builds a new octree from an Object3D.
|
Modifier and Type | Method and Description |
---|---|
static Object3D |
ExtendedPrimitives.createBox(SimpleVector size)
Creates a cuboid with width, height and depth given as components of a SimpleVector.
|
static Object3D |
ExtendedPrimitives.createCog(int teeth)
Creates a cog that fits into a 1*1*1 cube.
|
static Object3D |
ExtendedPrimitives.createCog(int teeth,
float holeRadius,
float innerRadius,
float outerRadius,
float innerSpace,
float outerSpace,
float outerMovement,
float height)
Creates a cog.
|
static Object3D |
ExtendedPrimitives.createCone(float radius,
float height,
int faces,
boolean cap)
Creates a cone which would perfectly fit into a 1*1*1 cube.
|
static Object3D |
ExtendedPrimitives.createCone(int faces)
Creates a cone which would perfeclty fit into a 1*1*1 cube.
|
static Object3D |
ExtendedPrimitives.createCube()
Creates a cube with an edge length of 1.
|
static Object3D |
ExtendedPrimitives.createCube(float size)
Creates a cube with a given edge length.
|
static Object3D |
ExtendedPrimitives.createCylinder(float radius,
float height,
int quads,
boolean caps)
Creates a cylinder with specific radius and height.
|
static Object3D |
ExtendedPrimitives.createCylinder(int quads)
Creates a cylinder which would perfectly fit into a 1*1*1 cube.
|
static Object3D |
ExtendedPrimitives.createDisc(float xradius,
float yradius,
int vertices)
Creates a disc with a specific radius in X and in Y direction.
|
static Object3D |
ExtendedPrimitives.createDisc(float radius,
int vertices)
Creates a disc with a specific radius.
|
static Object3D |
ExtendedPrimitives.createDisc(int vertices)
Creates a disc with a size of 1*1 (so it has radius 0.5).
|
static Object3D |
ExtendedPrimitives.createEllipsoid(SimpleVector size,
int quads)
Creates an ellipsoid with given width, height and depth.
|
static Object3D |
ExtendedPrimitives.createEllipsoid(SimpleVector size,
int quads,
float uScale,
float vScale)
Creates an ellipsoid with given width, height and depth.
|
static Object3D |
ExtendedPrimitives.createPivot()
A pivot object is just another name for a dummy object that can be used to position objects by setting
the pivot as parent.
|
static Object3D |
ExtendedPrimitives.createPlane(float size,
int quads)
Creates a plane.
|
static Object3D |
ExtendedPrimitives.createPlane(int quads)
Creates a plane.
|
static Object3D |
ExtendedPrimitives.createPyramid()
Creates a pyramid that would perfectly fit into a 1*1*1 cube.
|
static Object3D |
ExtendedPrimitives.createPyramid(float size)
Creates a pyramid that would perfectly fit into a specific cube.
|
static Object3D |
ExtendedPrimitives.createPyramid(float size,
float height)
Creates a pyramid with a specific ground size and height.
|
static Object3D |
ExtendedPrimitives.createSphere(float radius,
int quads)
Creates a sphere with a specific radius.
|
static Object3D |
ExtendedPrimitives.createSphere(int quads)
Creates a sphere with a radius of 0.5 (so it would perfectly fit into a 1*1*1 cube).
|
static Object3D |
ExtendedPrimitives.createSprite()
Creates a sprite of size 1*1.
|
static Object3D |
ExtendedPrimitives.createSprite(float size)
Creates a sprite of a specific size.
|
static Object3D |
ExtendedPrimitives.createSprite(float width,
float height)
Creates a sprite of a specific size.
|
static Object3D |
ExtendedPrimitives.createTorus(float radius,
float pipeRadius,
int lengthQuads,
int pipeQuads)
Creates a torus (also known as donut) around the Y-Axis.
|
static Object3D |
ExtendedPrimitives.createTorus(int lengthQuads,
int pipeQuads)
Creates a torus (also known as donut) around the Y-Axis.
|
static Object3D |
ExtendedPrimitives.createTube(float innerRadius,
float outerRadius,
float height,
int quads)
Creates a tube along the Y-Axis.
|
static Object3D |
ExtendedPrimitives.createTube(int quads)
Creates a tube along the Y-Axis.
|
Object3D |
Overlay.getObject3D()
Returns the internal Object3D that is the actual Overlay.
|
Modifier and Type | Method and Description |
---|---|
void |
ShadowHelper.addCaster(Object3D obj)
Adds a caster.
|
void |
ShadowHelper.addReceiver(Object3D obj)
Adds a receiver.
|
void |
ShadowHelper.removeCaster(Object3D caster)
Removes a caster.
|
static void |
ExtendedPrimitives.transformUVCoords(Object3D obj,
float uMove1,
float vMove1,
float uScale,
float vScale,
float uMove2,
float vMove2)
Moves, scales and again moves uv coords on an Object3D object.
|