VAPoR
3.0.0
|
class that indicates location and direction of view More...
#include <viewpoint.h>
Public Member Functions | |
Viewpoint () | |
Constructor, set everything to default view. More... | |
virtual | ~Viewpoint () |
Destructor. More... | |
Public Member Functions inherited from VAPoR::ParamsBase | |
ParamsBase (XmlNode *parent, const string &name) | |
ParamsBase (const string &name) | |
Default constructor. More... | |
ParamsBase (const ParamsBase &pbase) | |
Copy constructor. More... | |
virtual | ~ParamsBase () |
destructor..destroys the xml tree based at the root node. More... | |
ParamNode * | GetRootNode () const |
const string | GetName () const |
virtual long | GetValueLong (const string &tag, const vector< long > &defaultVal=_emptyLongVec) |
virtual double | GetValueDouble (const string &tag, const vector< double > &defaultVal=_emptyDoubleVec) |
virtual const string | GetValueString (const string &tag, const string &defaultVal=_emptyString) |
virtual const vector< long > | GetValueLongVec (const string &tag, const vector< long > &defaultVal=_emptyLongVec) |
virtual const vector< double > | GetValueDoubleVec (const string &tag, const vector< double > &defaultVal=_emptyDoubleVec) |
virtual void | GetValueStringVec (const string &tag, vector< string > &vec, const vector< string > &defaultVal=_emptyStringVec) |
virtual int | SetValueLong (string tag, const char *description, long value, Params *p) |
virtual int | SetValueLong (string tag, const char *description, const vector< long > &value, Params *p) |
virtual int | SetValueDouble (string tag, const char *description, double value, Params *p) |
virtual int | SetValueDouble (string tag, const char *description, const vector< double > &value, Params *p) |
virtual int | SetValueString (string tag, const char *description, const string &value, Params *p) |
virtual int | SetValueStringVec (string tag, const char *description, const vector< string > &value, Params *p) |
ParamsBaseType | GetParamsBaseTypeId () |
virtual void | SetRootParamNode (ParamNode *pn) |
ParamsBase * | GetParamsBase (const vector< string > &path) const |
int | SetParamsBase (const vector< string > &path, ParamsBase *pbase) |
int | RemoveParamsBase (const vector< string > &path, ParamsBase *pbase) |
void | SetParent (XmlNode *parent) |
virtual bool | elementStartHandler (ExpatParseMgr *pm, int depth, string &tag, const char **attribs) |
virtual bool | elementEndHandler (ExpatParseMgr *pm, int depth, string &tag) |
virtual ParamNode * | buildNode () |
ParamNode * | GetCurrentNode () |
ParamNode * | Push (string &tag, ParamsBase *pBase=0) |
ParamNode * | Pop () |
void | Remove (const string &name) |
const map< string, string > & | GetAttributes () |
void | Clear () |
Internal | |
const vector< double > | getCameraPosLocal () |
double | getCameraPosLocal (int i) |
int | setCameraPosLocal (int coord, double val, Params *p) |
int | setCameraPosLocal (const vector< double > &val, Params *p) |
const vector< double > | getViewDir () |
double | getViewDir (int i) |
int | setViewDir (int coord, double val, Params *p) |
int | setViewDir (const vector< double > &val, Params *p) |
const vector< double > | getUpVec () |
double | getUpVec (int i) |
int | setUpVec (int coord, double val, Params *p) |
int | setUpVec (const vector< double > &val, Params *p) |
const vector< double > | getRotationCenterLocal () |
double | getRotationCenterLocal (int i) |
int | setRotationCenterLocal (int coord, double val, Params *p) |
int | setRotationCenterLocal (const vector< double > &val, Params *p) |
void | alignCenter (Params *p) |
void | getStretchedRotCtrLocal (double *vec) |
int | setStretchedRotCtrLocal (const double *vec, Params *p) |
void | getStretchedCamPosLocal (double *vec) |
int | setStretchedCamPosLocal (const double *vec, Params *p) |
static ParamsBase * | CreateDefaultInstance () |
Additional Inherited Members | |
Public Types inherited from VAPoR::ParamsBase | |
typedef int | ParamsBaseType |
Static Public Member Functions inherited from VAPoR::ParamsBase | |
static ParamsBaseType | GetTypeFromTag (const string &tag) |
static const string | GetTagFromType (ParamsBaseType t) |
static ParamsBase * | CreateDefaultParamsBase (int pType) |
static ParamsBase * | CreateDefaultParamsBase (const string &tag) |
static int | RegisterParamsBaseClass (const string &tag, BaseCreateFcn fcn, bool isParams) |
static int | ReregisterParamsBaseClass (const string &tag, const string &newtag, bool isParams) |
static int | GetNumParamsClasses () |
static int | GetNumBasicParamsClasses () |
static bool | IsParamsTag (const string &tag) |
class that indicates location and direction of view
Definition at line 22 of file viewpoint.h.
|
inline |
Constructor, set everything to default view.
Definition at line 26 of file viewpoint.h.
|
inlinevirtual |
Destructor.
Definition at line 43 of file viewpoint.h.
void VAPoR::Viewpoint::alignCenter | ( | Params * | p | ) |
Force the rotation center to be aligned with view direction
[in] | Params* | p The Params instance that is requesting this |
|
inlinestatic |
Required static method (for extensibility):
ParamsBase* | pointer to a default Params instance |
Definition at line 51 of file viewpoint.h.
|
inline |
Identify current camera position in local coordinates
const | vector<double> camera position |
Definition at line 54 of file viewpoint.h.
|
inline |
Determine one local coordinate of current camera position
[in] | integer | coordinate |
double | corresponding component of local position |
Definition at line 61 of file viewpoint.h.
References getCameraPosLocal().
Referenced by getCameraPosLocal().
|
inline |
Obtain rotation center in local coordinates
vector<double>& | rotation center local coordinates |
Definition at line 135 of file viewpoint.h.
|
inline |
Obtain one local coordinate of rotation center
[in] | integer | coordinate |
double | corresponding component of local position |
Definition at line 141 of file viewpoint.h.
References getRotationCenterLocal().
Referenced by getRotationCenterLocal().
|
inline |
obtain camera position in stretched local coordinates
[out] | double[3] | camera position in stretched local coordinates |
Definition at line 183 of file viewpoint.h.
References VAPoR::DataStatus::getStretchFactors().
|
inline |
Obtain rotation center in stretched coordinate
[out] | double[3] | Position of rotation center in stretched coordinates. |
Definition at line 166 of file viewpoint.h.
References VAPoR::DataStatus::getStretchFactors().
|
inline |
Obtain view up-vector
const | vector<double> direction vector |
Definition at line 107 of file viewpoint.h.
|
inline |
Obtain a component of the view up vector
[in] | int | coordinate |
const | vector<double> direction vector |
Definition at line 113 of file viewpoint.h.
References getUpVec().
Referenced by getUpVec().
|
inline |
Obtain the view direction vector
const | vector<double> direction vector |
Definition at line 81 of file viewpoint.h.
|
inline |
Obtain a component of the view direction vector
[in] | int | coordinate |
double | direction vector component |
Definition at line 87 of file viewpoint.h.
References getViewDir().
Referenced by getViewDir().
|
inline |
Specify a coordinate of the camera position (in local coordinates)
[in] | int | coord The 0,1,2 coordinate to be set |
[in] | double | val value to be set |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 67 of file viewpoint.h.
|
inline |
Specify the camera position (in local coordinates)
[in] | vector<double> | new position |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 76 of file viewpoint.h.
|
inline |
Specify a coordinate of rotation center in local coordinates
[in] | int | coord; |
[in] | double | rotation center local coordinate |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 147 of file viewpoint.h.
|
inline |
Specify rotation center in local coordinates
[in] | vector<double>& | rotation center in local coordinates |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 156 of file viewpoint.h.
|
inline |
Specify camera position in stretched local coordinates
[in] | vec | double[3] camera position in stretched local coordinates |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 192 of file viewpoint.h.
References VAPoR::DataStatus::getStretchFactors().
|
inline |
Specify rotation center in stretched local coordinates
[in] | double[3] | rotation center in stretched local coordinates |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 175 of file viewpoint.h.
References VAPoR::DataStatus::getStretchFactors().
|
inline |
Specify a component of the view upward direction vector
[in] | int | coordinate index |
[in] | double | direction vector component |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 119 of file viewpoint.h.
|
inline |
Specify a component of the view upward direction vector
[in] | int | coordinate index |
[in] | double | direction vector component |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful, otherwise -1 |
Definition at line 130 of file viewpoint.h.
|
inline |
Specify a component of the camera direction vector
[in] | int | coordinate index (0,1,2) |
[in] | double | value of new coordinate |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 93 of file viewpoint.h.
|
inline |
Specify a component of the camera direction vector
[in] | const | vector<double>& direction vector |
[in] | Param* | the Params instance that is requesting this setvalue |
int | 0 if successful |
Definition at line 102 of file viewpoint.h.