de.grogra.imp3d
public class View3D extends View implements SharedObjectReference, ViewConfig3D
View3D is a View which displays a graph
as a 3D structure.| Modifier and Type | Class and Description |
|---|---|
static class |
View3D.Type |
View.SceneListenerEventListener.Bicast, EventListener.Multicaster| Modifier and Type | Field and Description |
|---|---|
static View3D.Type |
$TYPE |
static SCOType.Field |
camera$FIELD |
protected CanvasCamera |
canvasCam |
static UIProperty |
DISPLAY |
static IOFlavor |
FLAVOR |
static java.lang.String |
INITIAL_CAMERA |
static SCOType.Field |
navigator$FIELD |
static UIProperty |
TOOL |
ANAGLYPH_MAX, ANAGLYPH_VIEW_TYPE, COMPONENT, epsilon$FIELD, graphDescriptor$FIELD, I18N, listeners, LOD_MAX, LOD_MIN, LOD_TYPE, magnitude$FIELD, PREVIEW_MAX, SCALE_COUNT, SCALES_CHANGED, SCALES_VISIBLE, STEREO_MAX, STEREO_VIEW_TYPE, VIEW_PREVIEW1_TYPE, VIEW_PREVIEW2_TYPE, visibleLayers$FIELD, visibleScales$FIELD, visualEpsilon$FIELDdecorator, panelDEC_WAIT_CURSOR, DEFAULT_CURSOR, INC_WAIT_CURSOR, INHERIT_CURSOR, PANEL_ID, WAIT_CURSOR| Constructor and Description |
|---|
View3D() |
| Modifier and Type | Method and Description |
|---|---|
protected ViewEventHandler |
createEventHandler() |
void |
dolly(int dx,
int dy) |
void |
dollyOrZoom(int dx,
int dy) |
float |
estimateScaleAt(float x,
float y,
float z,
Matrix4d t) |
float |
estimateScaleAt(Tuple3d p,
Matrix4d t) |
float |
estimateScaleAt(Tuple3f p,
Matrix4d t) |
void |
eventOccured(java.util.EventObject e)
This method is invoked on registered event listeners when
event has occured. |
Camera |
getCamera() |
CanvasCamera |
getCanvasCamera() |
static Light |
getDefaultLight(Camera camera,
Matrix4d lightToWorld)
Computes a default light to use when a scene contains no lights.
|
Light |
getDefaultLight(Matrix4d lightToWorld)
Computes a default light to use when a scene contains no lights.
|
static View3D |
getDefaultView(Context ctx) |
static ViewConfig3D |
getDefaultViewConfig(Context ctx) |
IOFlavor |
getFlavor() |
ManageableType |
getManageableType() |
Navigator3DFactory |
getNavigator() |
static Selectable |
getSelectableCamera(Context ctx) |
protected UIProperty |
getToolProperty() |
protected void |
initialize(Panel panel,
Map params) |
protected void |
installImpl() |
boolean |
isInVisibleScale(java.lang.Object o,
boolean asNode,
GraphState state) |
boolean |
isToolGraph(Graph graph) |
void |
move(int dx,
int dy) |
void |
pick(int x,
int y,
PickList list) |
void |
repaint() |
void |
rotate(int dx,
int dy) |
void |
setCameraTransformation(Matrix4d transformation) |
void |
setExtent(Tuple3f center,
float radius)
This callback method should be invoked by the 3D-
ViewComponent
which displays the scene in order to inform this View3D about
the geometrical extent of the whole scene. |
void |
setNavigator(Navigator3DFactory value) |
void |
sharedObjectModified(Shareable object,
Transaction t) |
protected void |
uninstallImpl() |
static ViewConfig3D |
withCamera(ViewConfig3D v,
Camera c) |
addEventListener, addMappings, create, disableRepaint, dispose, disposeRenderer, enableRepaint, fieldModified, get, get, getActiveTool, getEpsilon, getEpsilonSquared, getEventHandler, getGraph, getMagnitude, getMagnitudeSquared, getPathFor, getSelectableGraph, getSelectableLayers, getSelectableScales, getSize, getStamp, getViewComponent, getViewComponent, getVisibleScales, getVisualEpsilon, getVisualEpsilonSquared, getWorkbenchGraphState, isInVisibleLayer, isRepaint, manageableReadResolve, manageableWriteReplace, removeEventListener, render, renderToFile, repaint, set, setActiveTool, setDimensions, setDimensions, setEpsilon, setGraph, setGraph, setMagnitude, setViewComponent, setVisualEpsilon, substituteSelection, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, uninstallcheckClose, getComponent, getContent, getDecorator, getMenu, getPanel, getPanelId, getUIPropertyMap, getWindow, getWorkbench, initDecorator, initPanel, resolve, setContent, setCursor, setMenu, showclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEpsilon, getGraph, getWorkbench, isInVisibleLayerpublic static final View3D.Type $TYPE
public static final SCOType.Field camera$FIELD
protected CanvasCamera canvasCam
public static final UIProperty DISPLAY
public static final IOFlavor FLAVOR
public static final java.lang.String INITIAL_CAMERA
public static final SCOType.Field navigator$FIELD
public static final UIProperty TOOL
protected ViewEventHandler createEventHandler()
createEventHandler in class Viewpublic void dolly(int dx,
int dy)
public void dollyOrZoom(int dx,
int dy)
public float estimateScaleAt(float x,
float y,
float z,
Matrix4d t)
public void eventOccured(java.util.EventObject e)
EventListenerevent has occured. This general listener interface
does not restrict the possible kinds of events. Concrete sources
of events should specify which events they may fire.eventOccured in class Viewe - an eventpublic Camera getCamera()
getCamera in interface ViewConfig3Dpublic CanvasCamera getCanvasCamera()
public static Light getDefaultLight(Camera camera, Matrix4d lightToWorld)
camera - used cameralightToWorld - the computed transformation for the light is placed in herepublic Light getDefaultLight(Matrix4d lightToWorld)
ViewConfig3DgetDefaultLight in interface ViewConfig3DlightToWorld - the computed transformation for the light is placed in herepublic static ViewConfig3D getDefaultViewConfig(Context ctx)
public ManageableType getManageableType()
getManageableType in interface Manageablepublic Navigator3DFactory getNavigator()
public static Selectable getSelectableCamera(Context ctx)
protected UIProperty getToolProperty()
getToolProperty in class Viewprotected void initialize(Panel panel, Map params)
initialize in class Viewprotected void installImpl()
installImpl in class Viewpublic boolean isInVisibleScale(java.lang.Object o,
boolean asNode,
GraphState state)
isInVisibleScale in interface ViewConfig3DisInVisibleScale in class Viewpublic boolean isToolGraph(Graph graph)
isToolGraph in class Viewpublic void move(int dx,
int dy)
public void repaint()
public void rotate(int dx,
int dy)
public void setCameraTransformation(Matrix4d transformation)
public void setExtent(Tuple3f center, float radius)
ViewComponent
which displays the scene in order to inform this View3D about
the geometrical extent of the whole scene. center and radius
should define a bounding sphere (or at least an approximation thereof) of all
visible finite objects in view coordinates, i.e., after
Camera.getWorldToViewTransformation() has been applied.center - center of bounding sphereradius - radius of bounding spherepublic void setNavigator(Navigator3DFactory value)
public void sharedObjectModified(Shareable object, Transaction t)
sharedObjectModified in interface SharedObjectReferenceprotected void uninstallImpl()
uninstallImpl in class Viewpublic static ViewConfig3D withCamera(ViewConfig3D v, Camera c)