public class TLspMultiObjectEditContext extends Object
Constructor and Description |
---|
TLspMultiObjectEditContext()
Creates a new context.
|
TLspMultiObjectEditContext(TLspMultiObjectEditContext aContext)
Creates a new context from the given context.
|
Modifier and Type | Method and Description |
---|---|
Object |
getGeometry(Object aObject)
Returns the geometry for the given object.
|
TLspContext |
getHandleContext(Object aObject)
Returns the context for the handles.
|
TLspPaintRepresentation |
getHandlePaintRepresentation(Object aObject)
Returns the paint representation for the handles.
|
TLspContext |
getObjectContext(Object aObject)
Returns the context for the edited object.
|
TLspPaintRepresentation |
getObjectPaintRepresentation(Object aObject)
Returns the paint representation for the edited object.
|
Collection<Object> |
getObjects()
Returns the objects for which this edit context contains context information.
|
double |
getSensitivity()
Returns the sensitivity.
|
void |
putObject(Object aObject,
Object aGeometry,
TLspPaintRepresentation aObjectPaintRepresentation,
ILspInteractivePaintableLayer aObjectLayer,
TLspPaintRepresentation aHandlePaintRepresentation,
ILspInteractivePaintableLayer aHandleLayer,
ILspView aView)
Adds context for the given object to this multi object edit context.
|
void |
removeObject(Object aObject)
Removes the context information for the given object from this multi object edit context.
|
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 TLspMultiObjectEditContext()
public TLspMultiObjectEditContext(TLspMultiObjectEditContext aContext)
aContext
- a given context.public double getSensitivity()
setSensitivity(double)
public void setSensitivity(double aSensitivity)
aSensitivity
- the sensitivity.public Collection<Object> getObjects()
Note: these objects can be different than the geometry that is being edited, see also
getGeometry
. In most cases the geometry is needed, as this is the
object that is actually being edited.
public void putObject(Object aObject, Object aGeometry, TLspPaintRepresentation aObjectPaintRepresentation, ILspInteractivePaintableLayer aObjectLayer, TLspPaintRepresentation aHandlePaintRepresentation, ILspInteractivePaintableLayer aHandleLayer, ILspView aView)
aObject
- the object that is being edited.aGeometry
- the geometry that is being edited. Can be null
,
and in that case, the given object is used as geometry.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.aView
- the view.public void removeObject(Object aObject)
aObject
- an object.public Object getGeometry(Object aObject)
IllegalArgumentException
. If no geometry was set, this method
will return the given object.
The geometry is defined in the same reference as the domain object. To obtain this
reference, use getObjectContext
and retrieve the model reference
of the given object.aObject
- the object for which to retrieve the geometry.public TLspPaintRepresentation getObjectPaintRepresentation(Object aObject)
aObject
- the object for which to retrieve the paint representation.getObjectContext(Object)
public TLspContext getObjectContext(Object aObject)
aObject
- the object for which to retrieve the context.public TLspPaintRepresentation getHandlePaintRepresentation(Object aObject)
aObject
- the object for which to retrieve the handle paint representationgetHandleContext(Object)
public TLspContext getHandleContext(Object aObject)
isTouched
queries on the
projected base shape of a 3D object.aObject
- the object for which to retrieve the handle contextgetHandlePaintRepresentation(Object)