PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
PointObservation.h
Go to the documentation of this file.
1 //BTX
2 
3 #ifndef POINTOBSERVATION_H
4 #define POINTOBSERVATION_H
5 
6 #include "LinearObject.h"
7 
8 #include <string>
9 #include <sstream>
10 #include <vector>
11 #include <cmath>
12 
13 #include "vtkXMLDataElement.h"
14 #include "vnl/vnl_matrix.h"
15 
16 
17 // This class stores a vector of values only - we do not care about time
19 {
20 public:
21  std::vector<double> Observation;
22  static const int SIZE = 3;
23 
24 public:
26  PointObservation( std::vector<double> newObservation );
28 
29  void Translate ( std::vector<double> translation );
30  void Rotate( vnl_matrix<double>* rotation );
31 
32  std::string ToXMLString();
33  void FromXMLElement( vtkXMLDataElement* element );
34  bool FromXMLElement( vtkXMLDataElement* currElement, vtkXMLDataElement* prevElement );
35 
36 };
37 
38 #endif
39 
40 //ETX
void Rotate(vnl_matrix< double > *rotation)
void Translate(std::vector< double > translation)
static const int SIZE
void FromXMLElement(vtkXMLDataElement *element)
std::vector< double > Observation
std::string ToXMLString()