public class RigidShapeBuilder extends ApplicationTemplate
Ellipsoid
, Box
, Cylinder
, Cone
, Pyramid
and Wedge
) as well as ExtrudedPolygon
. The RigidShapeBuilder user interface allows the user to select the
desired shape from a dropdown menu, create an instance of it with the click of a button, and specify an "edit mode"
for modifying the shape: move, scale, rotate, skew, or texture. Numerous shapes may be created and placed on the
globe together, but only one may be selected and edited at any given time.
Keyboard shortcuts allow the user to toggle easily between the various edit modes. The shortcuts are as follows:
Ctrl-Z: move Ctrl-X: scale Ctrl-C: rotate Ctrl-V: skew Ctrl-B: texture
Edited shapes are Restorable and may be saved to or loaded from a file using options in the File menu.Modifier and Type | Class and Description |
---|---|
protected static class |
RigidShapeBuilder.AbstractShapeBuilderController |
protected static class |
RigidShapeBuilder.AbstractShapeBuilderModel |
protected static class |
RigidShapeBuilder.AbstractShapeBuilderPanel |
protected static class |
RigidShapeBuilder.AbstractShapeEntry
The AbstractShapeEntry class defines a shape entry in the AbstractShapeBuilderModel.
|
protected static interface |
RigidShapeBuilder.AbstractShapeFactory |
protected static class |
RigidShapeBuilder.AppFrame |
protected static class |
RigidShapeBuilder.BoxFactory |
protected static class |
RigidShapeBuilder.ConeFactory |
protected static class |
RigidShapeBuilder.CylinderFactory |
protected static class |
RigidShapeBuilder.EditMode |
protected static class |
RigidShapeBuilder.EllipsoidFactory |
protected static class |
RigidShapeBuilder.ExtrudedPolygonFactory |
protected static class |
RigidShapeBuilder.PyramidFactory |
protected static class |
RigidShapeBuilder.WedgeFactory |
ApplicationTemplate.AppPanel
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
CLEAR_SELECTION |
protected static double |
DEFAULT_SHAPE_SIZE_METERS |
protected static RigidShapeBuilder.AbstractShapeFactory[] |
defaultAbstractShapeFactories |
protected static RigidShapeBuilder.EditMode[] |
defaultEditModes |
protected static java.lang.String |
EDIT_TEXTURE |
protected static java.lang.String |
ENABLE_EDIT |
protected static java.lang.String |
KEEP_SHAPE_ABOVE_SURFACE |
protected static java.lang.String |
NEW_ABSTRACT_SHAPE |
protected static long |
nextEntryNumber |
protected static java.lang.String |
OPEN |
protected static java.lang.String |
OPEN_IMAGE_FILE |
protected static java.lang.String |
REMOVE_SELECTED |
protected static java.lang.String |
SAVE |
protected static java.lang.String |
SELECTION_CHANGED |
protected static java.lang.String |
SET_EDIT_MODE |
protected static java.lang.String |
SHAPE_LAYER_NAME |
protected static java.lang.String |
SIZE_NEW_SHAPES_TO_VIEWPORT |
Constructor and Description |
---|
RigidShapeBuilder() |
Modifier and Type | Method and Description |
---|---|
static ShapeAttributes |
getDefaultAttributes() |
static java.lang.String |
getNextName(java.lang.String base) |
static ShapeAttributes |
getSelectionAttributes() |
static void |
main(java.lang.String[] args) |
static void |
setEditorAttributes(AbstractShapeEditor editor) |
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
protected static final java.lang.String CLEAR_SELECTION
protected static final double DEFAULT_SHAPE_SIZE_METERS
protected static RigidShapeBuilder.AbstractShapeFactory[] defaultAbstractShapeFactories
protected static RigidShapeBuilder.EditMode[] defaultEditModes
protected static final java.lang.String EDIT_TEXTURE
protected static final java.lang.String ENABLE_EDIT
protected static final java.lang.String KEEP_SHAPE_ABOVE_SURFACE
protected static final java.lang.String NEW_ABSTRACT_SHAPE
protected static long nextEntryNumber
protected static final java.lang.String OPEN
protected static final java.lang.String OPEN_IMAGE_FILE
protected static final java.lang.String REMOVE_SELECTED
protected static final java.lang.String SAVE
protected static final java.lang.String SELECTION_CHANGED
protected static final java.lang.String SET_EDIT_MODE
protected static final java.lang.String SHAPE_LAYER_NAME
protected static final java.lang.String SIZE_NEW_SHAPES_TO_VIEWPORT
public static ShapeAttributes getDefaultAttributes()
public static java.lang.String getNextName(java.lang.String base)
public static ShapeAttributes getSelectionAttributes()
public static void main(java.lang.String[] args)
public static void setEditorAttributes(AbstractShapeEditor editor)