#include <Location.h>
Public Member Functions | |
vtLocationSaver (const vtString &fname) | |
bool | Read (const vtString &fname) |
Read from a .loc file. | |
bool | Write (const vtString &fname="") |
Write to a .loc file. | |
const vtString & | GetFilename () |
void | Remove (int num) |
Remove a location by index. | |
int | GetNumLocations () |
Return number of locations. | |
vtLocation * | GetLocation (int num) const |
Get a location by index. | |
int | FindLocation (const char *locname) |
Find a location by name. | |
void | Empty () |
void | SetTransform (vtTransform *trans) |
Attach this LocationSaver to an object in the scenegraph. | |
vtTransform * | GetTransform () |
Return the object attached to this LocationSaver. | |
void | SetConversion (const vtLocalConversion &conv) |
Define the conversion between this saver and terrain coordinates. | |
void | SetProjection (const vtProjection &proj) |
Define the projection of the object attached to this LocationSaver. | |
const vtProjection & | GetAtProjection () const |
bool | StoreTo (uint num, const LocNameString &name="") |
Get the location of the attached object and store it. | |
bool | RecallFrom (int num) |
Recall a location by index, and set it to the attached object. | |
bool | RecallFrom (const char *name) |
Protected Attributes | |
vtLocalConversion | m_conv |
vtProjection | m_proj |
vtTransform * | m_pTransform |
vtString | m_strFilename |
OCT * | m_pConvertToWGS |
OCT * | m_pConvertFromWGS |
vtArray< vtLocation * > | m_loc |
Friends | |
class | LocationVisitor |
This class manages a set of named locations (position and orientation). It can save and load the locations to a file, and jump back to any stored location.