VTK
|
Geo interface to a camera. More...
#include <vtkGeoCamera.h>
Public Types | |
typedef vtkObject | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
Return 1 if this class is the same type of (or a subclass of) the named class. More... | |
vtkGeoCamera * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
vtkCamera * | GetVTKCamera () |
This vtk camera is updated to match this geo cameras state. More... | |
void | InitializeNodeAnalysis (int rendererSize[2]) |
We precompute some values to speed up update of the terrain. More... | |
double | GetNodeCoverage (vtkGeoTerrainNode *node) |
This method estimates how much of the view is covered by the sphere. More... | |
virtual double * | GetPosition () |
Get the world position without the origin shift. More... | |
virtual void | GetPosition (double &, double &, double &) |
Get the world position without the origin shift. More... | |
virtual void | GetPosition (double[3]) |
Get the world position without the origin shift. More... | |
void | SetLongitude (double longitude) |
Longitude is in degrees: (-180->180) Relative to absolute coordinates. More... | |
virtual double | GetLongitude () |
Longitude is in degrees: (-180->180) Relative to absolute coordinates. More... | |
void | SetLatitude (double latitude) |
Latitude is in degrees: (-90->90) Relative to Longitude. More... | |
virtual double | GetLatitude () |
Latitude is in degrees: (-90->90) Relative to Longitude. More... | |
void | SetDistance (double Distance) |
Distance is in Meters Relative to Longitude and Latitude. More... | |
virtual double | GetDistance () |
Distance is in Meters Relative to Longitude and Latitude. More... | |
void | SetHeading (double heading) |
Heading is in degrees: (-180->180) Relative to Logitude and Latitude. More... | |
virtual double | GetHeading () |
Heading is in degrees: (-180->180) Relative to Logitude and Latitude. More... | |
void | SetTilt (double tilt) |
Tilt is also know as pitch. More... | |
virtual double | GetTilt () |
Tilt is also know as pitch. More... | |
virtual bool | GetLockHeading () |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes. More... | |
virtual void | SetLockHeading (bool) |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes. More... | |
virtual void | LockHeadingOn () |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes. More... | |
virtual void | LockHeadingOff () |
Whether to lock the heading a particular value, or to let the heading "roam free" when performing latitude and longitude changes. More... | |
void | SetOriginLatitude (double oLat) |
This point is shifted to 0,0,0 to avoid openGL issues. More... | |
virtual double | GetOriginLatitude () |
This point is shifted to 0,0,0 to avoid openGL issues. More... | |
void | SetOriginLongitude (double oLat) |
This point is shifted to 0,0,0 to avoid openGL issues. More... | |
virtual double | GetOriginLongitude () |
This point is shifted to 0,0,0 to avoid openGL issues. More... | |
virtual double * | GetOrigin () |
Get the rectilinear cooridinate location of the origin. More... | |
virtual void | GetOrigin (double &, double &, double &) |
Get the rectilinear cooridinate location of the origin. More... | |
virtual void | GetOrigin (double[3]) |
Get the rectilinear cooridinate location of the origin. More... | |
void | SetOrigin (double ox, double oy, double oz) |
Get the rectilinear cooridinate location of the origin. More... | |
Public Member Functions inherited from vtkObject | |
vtkBaseTypeMacro (vtkObject, vtkObjectBase) | |
virtual void | DebugOn () |
Turn debugging output on. More... | |
virtual void | DebugOff () |
Turn debugging output off. More... | |
bool | GetDebug () |
Get the value of the debug flag. More... | |
void | SetDebug (bool debugFlag) |
Set the value of the debug flag. More... | |
virtual void | Modified () |
Update the modification time for this object. More... | |
virtual vtkMTimeType | GetMTime () |
Return this object's modified time. More... | |
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) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
vtkCommand * | GetCommand (unsigned long tag) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObserver (vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
void | RemoveObservers (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
int | HasObserver (unsigned long event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
int | HasObserver (const char *event, vtkCommand *) |
Allow people to add/remove/invoke observers (callbacks) to any VTK object. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More... | |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
Allow user to set the AbortFlagOn() with the return value of the callback method. More... | |
int | InvokeEvent (unsigned long event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
int | InvokeEvent (const char *event, void *callData) |
This method invokes an event and return whether the event was aborted or not. More... | |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
Return the class name as a string. More... | |
virtual void | Delete () |
Delete a VTK object. More... | |
virtual void | FastDelete () |
Delete a reference to this object. More... | |
void | InitializeObjectBase () |
void | Print (ostream &os) |
Print an object to an ostream. More... | |
virtual void | Register (vtkObjectBase *o) |
Increase the reference count (mark as used by another object). More... | |
virtual void | UnRegister (vtkObjectBase *o) |
Decrease the reference count (release by another object). More... | |
int | GetReferenceCount () |
Return the current reference count of this object. More... | |
void | SetReferenceCount (int) |
Sets the reference count. More... | |
void | PrintRevisions (ostream &) |
Legacy. More... | |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
Methods invoked by print to print information about the object including superclasses. More... | |
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 vtkObject * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
static void | BreakOnError () |
This method is called when vtkErrorMacro executes. More... | |
static void | SetGlobalWarningDisplay (int val) |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOn () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static void | GlobalWarningDisplayOff () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
static int | GetGlobalWarningDisplay () |
This is a global flag that controls whether any debug, warning or error messages are displayed. More... | |
Static Public Member Functions inherited from vtkObjectBase | |
static vtkTypeBool | IsTypeOf (const char *name) |
Return 1 if this class type is the same type of (or a subclass of) the named class. More... | |
static vtkObjectBase * | New () |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More... | |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkGeoCamera () | |
~vtkGeoCamera () | |
void | UpdateVTKCamera () |
void | UpdateAngleRanges () |
void | ComputeRectilinearOrigin () |
Protected Member Functions inherited from vtkObject | |
vtkObject () | |
~vtkObject () override | |
void | RegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
These methods allow a command to exclusively grab all events. More... | |
void | InternalReleaseFocus () |
These methods allow a command to exclusively grab all events. More... | |
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 83 of file vtkGeoCamera.h.
typedef vtkObject vtkGeoCamera::Superclass |
Definition at line 87 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 vtkObjectBase.
|
static |
|
protectedvirtual |
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 199 of file vtkGeoCamera.h.
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 212 of file vtkGeoCamera.h.
|
protected |
Definition at line 213 of file vtkGeoCamera.h.
|
protected |
Definition at line 216 of file vtkGeoCamera.h.
|
protected |
Definition at line 217 of file vtkGeoCamera.h.
|
protected |
Definition at line 218 of file vtkGeoCamera.h.
|
protected |
Definition at line 221 of file vtkGeoCamera.h.
|
protected |
Definition at line 222 of file vtkGeoCamera.h.
|
protected |
Definition at line 223 of file vtkGeoCamera.h.
|
protected |
Definition at line 224 of file vtkGeoCamera.h.
|
protected |
Definition at line 225 of file vtkGeoCamera.h.
|
protected |
Definition at line 226 of file vtkGeoCamera.h.
|
protected |
Definition at line 230 of file vtkGeoCamera.h.
|
protected |
Definition at line 231 of file vtkGeoCamera.h.
|
protected |
Definition at line 232 of file vtkGeoCamera.h.
|
protected |
Definition at line 233 of file vtkGeoCamera.h.
|
protected |
Definition at line 236 of file vtkGeoCamera.h.
|
protected |
Definition at line 237 of file vtkGeoCamera.h.
|
protected |
Definition at line 238 of file vtkGeoCamera.h.
|
protected |
Definition at line 239 of file vtkGeoCamera.h.
|
protected |
Definition at line 241 of file vtkGeoCamera.h.