TEntity - The type of entity.public class ViewFromTo<TEntity extends IEntityPosition> extends Object
Point with a Camera (get / set) from the location of another entity or Point.
 
 By default, Insight3D allows the user to control the view with the mouse.  This can create
 undesired behavior if you're trying to lock the view to both a specific 'to' point and a specific 'from' point,
 as is the purpose of this class.
 It's recommended that you disable automatic mouse handling while this view is active.  See
 MouseOptions (get) for details on adjusting mouse handling.  This class
 only modifies camera properties related to Position (get / set)
 and ReferencePoint (get / set). All other properties can still be adjusted manually.
| Constructor and Description | 
|---|
ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity)
Initializes a new instance. 
 | 
ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity,
          Camera camera,
          Point fromPoint,
          Point toPoint)
 | 
ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity,
          Camera camera,
          Point fromPoint,
          TEntity toEntity)
 | 
ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity,
          Camera camera,
          TEntity fromEntity,
          Point toPoint)
 | 
ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity,
          Camera camera,
          TEntity fromEntity,
          TEntity toEntity)
 | 
| Modifier and Type | Method and Description | 
|---|---|
Camera | 
getCamera()
 | 
TEntity | 
getFromEntity()
Gets the entity whose position will be used to place the camera or null if a  
Point is being used. | 
Point | 
getFromPoint()
Gets the Point whose position will be used to place the camera or null if an entity is being used. 
 | 
Ellipsoid | 
getShape()
Gets the  
Ellipsoid to rotate the camera about. | 
TEntity | 
getToEntity()
Gets the entity whose position will be used to aim the camera or null if a  
Point is being used. | 
Point | 
getToPoint()
Gets the Point whose position will be used to aim the camera or null if an entity is being used. 
 | 
void | 
refreshEvaluators()
Forces recreation of the evaluators being used when viewing to or from a  
Point and the Point's definition has changed. | 
void | 
setCamera(Camera value)
 | 
void | 
setFrom(Point point)
Specifies a  
Point which will be used to place the camera. | 
void | 
setFrom(TEntity entity)
Specifies the entity at which the camera will be aimed. 
 | 
void | 
setShape(Ellipsoid value)
Sets the  
Ellipsoid to rotate the camera about. | 
void | 
setTo(Point point)
Specifies the  
Point at which the camera will be aimed. | 
void | 
setTo(TEntity entity)
Specifies the entity at which the camera will be placed. 
 | 
void | 
update(Transaction transaction)
Moves the camera's reference point to the position of the to
    entity while placing the camera at the position of the from entity. 
 | 
public ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity)
typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.public ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity, Camera camera, TEntity fromEntity, TEntity toEntity)
TEntity to another using the specified Camera (get / set).typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.camera - The camera to use.fromEntity - The entity whose position will represent the camera's position.toEntity - The entity whose position will represent the camera's reference point.public ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity, Camera camera, Point fromPoint, Point toPoint)
Point to another using the specified Camera (get / set).typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.camera - The camera to use.fromPoint - The Point whose position will represent the camera's position.toPoint - The Point whose position will represent the camera's reference point.public ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity, Camera camera, TEntity fromEntity, Point toPoint)
Point to a TEntity using the specified Camera (get / set).typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.camera - The camera to use.fromEntity - The entity whose position will represent the camera's position.toPoint - The Point whose position will represent the camera's reference point.public ViewFromTo(TypeLiteral<TEntity> typeLiteralTEntity, Camera camera, Point fromPoint, TEntity toEntity)
TEntity to a Point using the specified Camera (get / set).typeLiteralTEntity - A TypeLiteral object representing the generic type TEntity.camera - The camera to use.fromPoint - The Point whose position will represent the camera's position.toEntity - The entity whose position will represent the camera's reference point.public final Camera getCamera()
public final void setCamera(Camera value)
public final void setFrom(Point point)
Point which will be used to place the camera.point - The Point to be used to place the camera.public final void setFrom(TEntity entity)
entity - The entity to be used to aim the camera.public final void setTo(Point point)
Point at which the camera will be aimed.point - The Point to be used to aim the camera.public final void setTo(TEntity entity)
entity - The entity to be used to place the camera.public final Ellipsoid getShape()
public final void setShape(Ellipsoid value)
public final TEntity getToEntity()
Point is being used.public final TEntity getFromEntity()
Point is being used.public final Point getToPoint()
public final Point getFromPoint()
public final void refreshEvaluators()
Point and the Point's definition has changed.public final void update(Transaction transaction)
transaction - The transaction to use.ArgumentNullException - Thrown if transaction is null.PropertyInvalidException - Thrown if Camera (get / set) is null.IllegalStateException - Thrown if either a to or from location has not been specified.