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 String |
CLEAR_SELECTION |
protected static double |
DEFAULT_SHAPE_SIZE_METERS |
protected static RigidShapeBuilder.AbstractShapeFactory[] |
defaultAbstractShapeFactories |
protected static RigidShapeBuilder.EditMode[] |
defaultEditModes |
protected static String |
EDIT_TEXTURE |
protected static String |
ENABLE_EDIT |
protected static String |
KEEP_SHAPE_ABOVE_SURFACE |
protected static String |
NEW_ABSTRACT_SHAPE |
protected static long |
nextEntryNumber |
protected static String |
OPEN |
protected static String |
OPEN_IMAGE_FILE |
protected static String |
REMOVE_SELECTED |
protected static String |
SAVE |
protected static String |
SELECTION_CHANGED |
protected static String |
SET_EDIT_MODE |
protected static String |
SHAPE_LAYER_NAME |
protected static String |
SIZE_NEW_SHAPES_TO_VIEWPORT |
Constructor and Description |
---|
RigidShapeBuilder() |
Modifier and Type | Method and Description |
---|---|
static ShapeAttributes |
getDefaultAttributes() |
static String |
getNextName(String base) |
static ShapeAttributes |
getSelectionAttributes() |
static void |
main(String[] args) |
static void |
setEditorAttributes(AbstractShapeEditor editor) |
insertAfterPlacenames, insertBeforeCompass, insertBeforeLayerName, insertBeforePlacenames, start
protected static final String CLEAR_SELECTION
protected static final double DEFAULT_SHAPE_SIZE_METERS
protected static RigidShapeBuilder.AbstractShapeFactory[] defaultAbstractShapeFactories
protected static RigidShapeBuilder.EditMode[] defaultEditModes
protected static final String EDIT_TEXTURE
protected static final String ENABLE_EDIT
protected static final String KEEP_SHAPE_ABOVE_SURFACE
protected static final String NEW_ABSTRACT_SHAPE
protected static long nextEntryNumber
protected static final String OPEN
protected static final String OPEN_IMAGE_FILE
protected static final String REMOVE_SELECTED
protected static final String SAVE
protected static final String SELECTION_CHANGED
protected static final String SET_EDIT_MODE
protected static final String SHAPE_LAYER_NAME
protected static final String SIZE_NEW_SHAPES_TO_VIEWPORT
public static ShapeAttributes getDefaultAttributes()
public static ShapeAttributes getSelectionAttributes()
public static void main(String[] args)
public static void setEditorAttributes(AbstractShapeEditor editor)