VTK
|
Geo interface to a camera. More...
#include <vtkGeoCamera.h>
Public Types | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkGeoCamera * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
vtkCamera * | GetVTKCamera () |
void | InitializeNodeAnalysis (int rendererSize[2]) |
double | GetNodeCoverage (vtkGeoTerrainNode *node) |
virtual double * | GetPosition () |
virtual void | GetPosition (double &, double &, double &) |
virtual void | GetPosition (double[3]) |
void | SetLongitude (double longitude) |
virtual double | GetLongitude () |
void | SetLatitude (double latitude) |
virtual double | GetLatitude () |
void | SetDistance (double Distance) |
virtual double | GetDistance () |
void | SetHeading (double heading) |
virtual double | GetHeading () |
void | SetTilt (double tilt) |
virtual double | GetTilt () |
virtual bool | GetLockHeading () |
virtual void | SetLockHeading (bool) |
virtual void | LockHeadingOn () |
virtual void | LockHeadingOff () |
void | SetOriginLatitude (double oLat) |
virtual double | GetOriginLatitude () |
void | SetOriginLongitude (double oLat) |
virtual double | GetOriginLongitude () |
virtual double * | GetOrigin () |
virtual void | GetOrigin (double &, double &, double &) |
virtual void | GetOrigin (double[3]) |
void | SetOrigin (double ox, double oy, double oz) |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkGeoCamera * | New () |
static int | IsTypeOf (const char *type) |
static vtkGeoCamera * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGeoCamera () | |
~vtkGeoCamera () | |
void | UpdateVTKCamera () |
void | UpdateAngleRanges () |
void | ComputeRectilinearOrigin () |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
Protected Member Functions inherited from vtkObjectBase | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
vtkSmartPointer< vtkCamera > | VTKCamera |
vtkSmartPointer< vtkTransform > | Transform |
double | OriginLatitude |
double | OriginLongitude |
double | Origin [3] |
double | Longitude |
double | Latitude |
double | Distance |
double | Heading |
double | Tilt |
bool | LockHeading |
double | ForwardNormal [3] |
double | RightNormal [3] |
double | UpNormal [3] |
double | Aspect [2] |
double | LeftPlaneNormal [3] |
double | RightPlaneNormal [3] |
double | DownPlaneNormal [3] |
double | UpPlaneNormal [3] |
double | Position [3] |
Protected Attributes inherited from vtkObject | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
Protected Attributes inherited from vtkObjectBase | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
Geo interface to a camera.
I wanted to hide the normal vtkCamera API so I did not make this a subclass. The camera is a helper object. You can get a pointer to the camera, but it should be treated like a const.
View up of the camera is restricted so there is no roll relative to the earth. I am going to keep view up of the camera orthogonalized to avoid the singularity that exists when the camera is pointing straight down. In this case, view up is the same as heading.
The state of the view is specified by the vector: (Longitude,Latitude,Distance,Heading,Tilt). Longitude in degrees: (-180->180) Relative to absolute coordinates. Latitude in degrees: (-90->90) Relative to Longitude. Distance in Meters Relative to Longitude and Latitude. above sea level ???? should we make this from center of earth ???? ???? what about equatorial bulge ???? Heading in degrees: (-180->180) Relative to Logitude and Latitude. 0 is north. 90 is east. ???? what is the standard ???? 180 is south. -90 is west. Tilt in degrees: (0->90) Relative to Longitude, Latitude, Distance and Heading.
Transformation: Post concatenate. All rotations use right hand rule and are around (0,0,0) (earth center). (0,0,0,0,0) is this rectilinear point (0, EarthRadius, 0) pointing (0,0,1), view up (0,1,0).
Rotate Tilt around x axis, Rotate Heading around -y axis Center, Translate EarthRadius in y direction. Rotate Latitude around x axis by Latitude, Rotate Longitude around z axis (earth axis),
Definition at line 82 of file vtkGeoCamera.h.
typedef vtkObject vtkGeoCamera::Superclass |
Definition at line 86 of file vtkGeoCamera.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.
Reimplemented from vtkObject.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkGeoCamera* vtkGeoCamera::NewInstance | ( | ) | const |
|
virtual |
|
virtual |
Get the world position without the origin shift.
Get the world position without the origin shift.
|
virtual |
Get the world position without the origin shift.
void vtkGeoCamera::SetLongitude | ( | double | longitude | ) |
Longitude is in degrees: (-180->180) Relative to absolute coordinates. Rotate Longitude around z axis (earth axis),
|
virtual |
Longitude is in degrees: (-180->180) Relative to absolute coordinates. Rotate Longitude around z axis (earth axis),
void vtkGeoCamera::SetLatitude | ( | double | latitude | ) |
Latitude is in degrees: (-90->90) Relative to Longitude. Rotate Latitude around x axis by Latitude,
|
virtual |
Latitude is in degrees: (-90->90) Relative to Longitude. Rotate Latitude around x axis by Latitude,
void vtkGeoCamera::SetDistance | ( | double | Distance | ) |
Distance is in Meters Relative to Longitude and Latitude. above sea level ???? should we make this from center of earth ???? ???? what about equatorial bulge ????
|
virtual |
Distance is in Meters Relative to Longitude and Latitude. above sea level ???? should we make this from center of earth ???? ???? what about equatorial bulge ????
void vtkGeoCamera::SetHeading | ( | double | heading | ) |
Heading is in degrees: (-180->180) Relative to Logitude and Latitude. 0 is north. 90 is east. ???? what is the standard ???? 180 is south. -90 is west. Rotate Heading around -y axis Center,
|
virtual |
Heading is in degrees: (-180->180) Relative to Logitude and Latitude. 0 is north. 90 is east. ???? what is the standard ???? 180 is south. -90 is west. Rotate Heading around -y axis Center,
void vtkGeoCamera::SetTilt | ( | double | tilt | ) |
Tilt is also know as pitch. Tilt is in degrees: (0->90) Relative to Longitude, Latitude, and Heading. Rotate Tilt around x axis,
|
virtual |
Tilt is also know as pitch. Tilt is in degrees: (0->90) Relative to Longitude, Latitude, and Heading. Rotate Tilt around x axis,
vtkCamera* vtkGeoCamera::GetVTKCamera | ( | ) |
This vtk camera is updated to match this geo cameras state. It should be treated as a const and should not be modified.
void vtkGeoCamera::InitializeNodeAnalysis | ( | int | rendererSize[2] | ) |
We precompute some values to speed up update of the terrain. Unfortunately, they have to be manually/explicitly updated when the camera or renderer size changes.
double vtkGeoCamera::GetNodeCoverage | ( | vtkGeoTerrainNode * | node | ) |
This method estimates how much of the view is covered by the sphere. Returns a value from 0 to 1.
|
virtual |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes.
|
virtual |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes.
|
virtual |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes.
|
virtual |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes.
void vtkGeoCamera::SetOriginLatitude | ( | double | oLat | ) |
This point is shifted to 0,0,0 to avoid openGL issues.
|
virtual |
This point is shifted to 0,0,0 to avoid openGL issues.
void vtkGeoCamera::SetOriginLongitude | ( | double | oLat | ) |
This point is shifted to 0,0,0 to avoid openGL issues.
|
virtual |
This point is shifted to 0,0,0 to avoid openGL issues.
|
virtual |
Get the rectilinear cooridinate location of the origin. This is used to shift the terrain points.
Get the rectilinear cooridinate location of the origin. This is used to shift the terrain points.
|
virtual |
Get the rectilinear cooridinate location of the origin. This is used to shift the terrain points.
Get the rectilinear cooridinate location of the origin. This is used to shift the terrain points.
Definition at line 165 of file vtkGeoCamera.h.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 179 of file vtkGeoCamera.h.
|
protected |
Definition at line 180 of file vtkGeoCamera.h.
|
protected |
Definition at line 184 of file vtkGeoCamera.h.
|
protected |
Definition at line 185 of file vtkGeoCamera.h.
|
protected |
Definition at line 186 of file vtkGeoCamera.h.
|
protected |
Definition at line 189 of file vtkGeoCamera.h.
|
protected |
Definition at line 190 of file vtkGeoCamera.h.
|
protected |
Definition at line 191 of file vtkGeoCamera.h.
|
protected |
Definition at line 192 of file vtkGeoCamera.h.
|
protected |
Definition at line 193 of file vtkGeoCamera.h.
|
protected |
Definition at line 194 of file vtkGeoCamera.h.
|
protected |
Definition at line 198 of file vtkGeoCamera.h.
|
protected |
Definition at line 199 of file vtkGeoCamera.h.
|
protected |
Definition at line 200 of file vtkGeoCamera.h.
|
protected |
Definition at line 201 of file vtkGeoCamera.h.
|
protected |
Definition at line 204 of file vtkGeoCamera.h.
|
protected |
Definition at line 205 of file vtkGeoCamera.h.
|
protected |
Definition at line 206 of file vtkGeoCamera.h.
|
protected |
Definition at line 207 of file vtkGeoCamera.h.
|
protected |
Definition at line 209 of file vtkGeoCamera.h.