Umasoft
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | Protected Attributes | Friends | List of all members
vtLocationSaver Class Reference

#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 vtStringGetFilename ()
 
void Remove (int num)
 Remove a location by index.
 
int GetNumLocations ()
 Return number of locations.
 
vtLocationGetLocation (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.
 
vtTransformGetTransform ()
 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 vtProjectionGetAtProjection () 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
 
vtTransformm_pTransform
 
vtString m_strFilename
 
OCT * m_pConvertToWGS
 
OCT * m_pConvertFromWGS
 
vtArray< vtLocation * > m_loc
 

Friends

class LocationVisitor
 

Detailed Description

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.

See Also
vtLocation

The documentation for this class was generated from the following files: