38 bool ReconstructCamera(
const double m[16],
double position[3],
double upVec[3],
double viewDir[3])
const;
43 SetValueDoubleVec(_rotationCenterTag,
"Camera rotation center", v);
48 vector<double> defaultv(3, 0.0);
49 return (GetValueDoubleVec(_rotationCenterTag, defaultv));
57 static const string _modelViewMatrixTag;
58 static const string _projectionMatrixTag;
59 static const string _rotationCenterTag;
61 static double _defaultModelViewMatrix[16];
62 static double _defaultProjectionMatrix[16];
Nodes with state in Xml tree representation.
class that indicates location and direction of view
void GetModelViewMatrix(double m[16]) const
Return the current 4x4 model-view matrix.
Viewpoint(ParamsBase::StateSave *ssave, XmlNode *node)
bool ReconstructCamera(const double m[16], double position[3], double upVec[3], double viewDir[3]) const
void SetModelViewMatrix(const double m[16])
void SetRotationCenter(const std::vector< double > &v)
static string GetClassType()
void GetProjectionMatrix(double m[16]) const
std::vector< double > GetRotationCenter() const
void SetProjectionMatrix(const double m[16])
Viewpoint(ParamsBase::StateSave *ssave)