public final class TLspEditContext extends Object
Constructor and Description |
---|
TLspEditContext()
Creates a new context.
|
TLspEditContext(ILspView aView,
Object aObject,
TLspPaintRepresentation aObjectPaintRepresentation,
ILspInteractivePaintableLayer aObjectLayer,
TLspPaintRepresentation aHandlePaintRepresentation,
ILspInteractivePaintableLayer aHandleLayer,
double aSensitivity,
Object aGeometry)
Creates a new edit context with the given parameters.
|
TLspEditContext(TLspEditContext aEditContext)
Creates a new context from the given context.
|
Modifier and Type | Method and Description |
---|---|
Object |
getGeometry()
Returns the geometry.
|
TLspContext |
getHandleContext()
Returns the context for the handles.
|
TLspPaintRepresentation |
getHandlePaintRepresentation()
returns the paint representation for the handles.
|
Object |
getObject()
Returns the object that is being edited.
|
TLspContext |
getObjectContext()
Returns the context for the edited object.
|
TLspPaintRepresentation |
getObjectPaintRepresentation()
Returns the paint representation for the edited object.
|
double |
getSensitivity()
Returns the sensitivity.
|
void |
setGeometry(Object aGeometry)
Sets the geometry that is being edited.
|
void |
setHandlePaintRepresentation(TLspPaintRepresentation aHandlePaintRepresentation)
Sets the paint representation for the handles.
|
void |
setObject(Object aObject)
Sets the object that is being edited.
|
void |
setObjectPaintRepresentation(TLspPaintRepresentation aObjectPaintRepresentation)
Sets the paint representation for the edited object.
|
void |
setSensitivity(double aSensitivity)
This setting determines for example how close one needs to be to a
handle or to a point to be able to move it.
|
public TLspEditContext()
public TLspEditContext(TLspEditContext aEditContext)
aEditContext
- an edit context.public TLspEditContext(ILspView aView, Object aObject, TLspPaintRepresentation aObjectPaintRepresentation, ILspInteractivePaintableLayer aObjectLayer, TLspPaintRepresentation aHandlePaintRepresentation, ILspInteractivePaintableLayer aHandleLayer, double aSensitivity, Object aGeometry)
aView
- the view.aObject
- the object that is being edited.aObjectPaintRepresentation
- the paint representation of the object that is being edited.aObjectLayer
- the layer of the object that is being edited.aHandlePaintRepresentation
- the paint representation of the handles.aHandleLayer
- the handle layer.aSensitivity
- the sensitivity.aGeometry
- the geometry that is being edited. Can be null
,
in that case, aObject
is returned as geometry.public TLspContext getObjectContext()
public TLspContext getHandleContext()
isTouched
queries on the
projected base shape of a 3D object.getHandlePaintRepresentation()
public Object getObject()
getGeometry
. In most cases
the geometry is needed, as this is the object that is actually being edited. The object
returned by this method is mostly provided as context information.public void setObject(Object aObject)
aObject
- the object being edited.getObject()
public Object getGeometry()
getObjectContext
and retrieve the model reference of the domain object.public void setGeometry(Object aGeometry)
aGeometry
- the geometry being edited.getGeometry()
public TLspPaintRepresentation getObjectPaintRepresentation()
setObjectPaintRepresentation(com.luciad.view.lightspeed.layer.TLspPaintRepresentation)
,
getObjectContext()
public void setObjectPaintRepresentation(TLspPaintRepresentation aObjectPaintRepresentation)
aObjectPaintRepresentation
- the paint representation for the edited object.getObjectPaintRepresentation()
,
getObjectContext()
public TLspPaintRepresentation getHandlePaintRepresentation()
setHandlePaintRepresentation(com.luciad.view.lightspeed.layer.TLspPaintRepresentation)
,
getHandleContext()
public void setHandlePaintRepresentation(TLspPaintRepresentation aHandlePaintRepresentation)
aHandlePaintRepresentation
- the paint representation for the handles.getHandlePaintRepresentation()
,
getHandleContext()
public double getSensitivity()
setSensitivity(double)
public void setSensitivity(double aSensitivity)
aSensitivity
- the sensitivity.