PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Reference.h
Go to the documentation of this file.
1 /*=Plus=header=begin======================================================
2 Program: Plus
3 Copyright (c) Laboratory for Percutaneous Surgery. All rights reserved.
4 See License.txt for details.
5 =========================================================Plus=header=end*/
6 
7 #ifndef REFERENCE_H
8 #define REFERENCE_H
9 
10 #include "LinearObject.h"
11 
12 #include <string>
13 #include <sstream>
14 #include <vector>
15 #include <cmath>
16 
17 // This class stores a vector of values and a string label
18 class Reference : public LinearObject
19 {
20 public:
21  Reference();
22  Reference( std::vector<double> newBasePoint );
23  ~Reference();
24 
25  std::vector<double> ProjectVector( std::vector<double> vector );
26  void Translate( std::vector<double> vector );
27 
28  virtual std::string ToXMLString() const;
29  virtual void FromXMLElement( vtkXMLDataElement* element );
30 
31 };
32 
33 #endif
std::vector< double > ProjectVector(std::vector< double > vector)
Definition: Reference.cxx:34
virtual void FromXMLElement(vtkXMLDataElement *element)
Definition: Reference.cxx:65
void Translate(std::vector< double > vector)
Definition: Reference.cxx:41
virtual std::string ToXMLString() const
Definition: Reference.cxx:51