Class WireframeBox
java.lang.Object
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.wireframe.WireframeBox
- Direct Known Subclasses:
WireframeCube
A wireframe box (rectangular parallelepiped) composed of 12 line segments
representing the edges of the box. The box is axis-aligned, defined by two
opposite corner points.
The wireframe consists of four edges along each axis: four edges parallel to X, four parallel to Y, and four parallel to Z.
Usage example:
LineAppearance appearance = new LineAppearance(2, Color.GREEN);
Point3D corner1 = new Point3D(-50, -50, -50);
Point3D corner2 = new Point3D(50, 50, 50);
WireframeBox box = new WireframeBox(corner1, corner2, appearance);
shapeCollection.addShape(box);
- See Also:
-
Field Summary
Fields inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.AbstractShape
mouseInteractionController -
Constructor Summary
ConstructorsConstructorDescriptionWireframeBox(Box box, LineAppearance appearance) Constructs a wireframe box from aBoxgeometry object.WireframeBox(Point3D p1, Point3D p2, LineAppearance appearance) Constructs a wireframe box from two opposite corner points. -
Method Summary
Methods inherited from class eu.svjatoslav.sixth.e3d.renderer.raster.shapes.composite.base.AbstractCompositeShape
addShape, addShape, beforeTransformHook, getGroup, getLocation, getOriginalSubShapes, getViewSpaceTracker, hideGroup, removeGroup, setBackfaceCulling, setColor, setGroupForUngrouped, setLightingManager, setMouseInteractionController, setShadingEnabled, setTransform, showGroup, transform
-
Constructor Details
-
WireframeBox
Constructs a wireframe box from aBoxgeometry object.- Parameters:
box- the axis-aligned box defining the two opposite cornersappearance- the line appearance (color, width) used for all 12 edges
-
WireframeBox
Constructs a wireframe box from two opposite corner points. The corners do not need to be in any particular min/max order; the constructor uses each coordinate independently to form all eight vertices of the box.- Parameters:
p1- the first corner point of the boxp2- the diagonally opposite corner point of the boxappearance- the line appearance (color, width) used for all 12 edges
-