PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Point.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 POINT_H
8 #define POINT_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 Point : public LinearObject
19 {
20 public:
21  Point();
22  Point( std::vector<double> newBasePoint );
23  ~Point();
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 #endif
virtual void FromXMLElement(vtkXMLDataElement *element)
Definition: Point.cxx:63
virtual std::string ToXMLString() const
Definition: Point.cxx:49
Definition: Point.h:18
~Point()
Definition: Point.cxx:26
void Translate(std::vector< double > vector)
Definition: Point.cxx:39
Point()
Definition: Point.cxx:11
std::vector< double > ProjectVector(std::vector< double > vector)
Definition: Point.cxx:32