PlusLib  2.9.0
Software library for tracked ultrasound image acquisition, calibration, and processing.
Plane.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 PLANE_H
8 #define PLANE_H
9 
10 
11 #include "LinearObject.h"
12 #include <cmath>
13 #include <sstream>
14 #include <string>
15 #include <vector>
16 
17 // This class stores a vector of values and a string label
18 class Plane : public LinearObject
19 {
20 public:
21  Plane();
22  Plane( std::vector<double> newBasePoint, std::vector<double> newEndPoint1, std::vector<double> newEndPoint2 );
23  ~Plane();
24 
25  std::vector<double> GetNormal();
26  std::vector<double> ProjectVector( std::vector<double> vector );
27  void Translate( std::vector<double> vector );
28 
29  virtual std::string ToXMLString() const;
30  virtual void FromXMLElement( vtkXMLDataElement* element );
31 
32 protected:
33  std::vector<double> EndPoint1;
34  std::vector<double> EndPoint2;
35 };
36 
37 #endif
38 
39 //ETX
virtual void FromXMLElement(vtkXMLDataElement *element)
Definition: Plane.cxx:81
void Translate(std::vector< double > vector)
Definition: Plane.cxx:53
Plane()
Definition: Plane.cxx:11
Definition: Plane.h:18
virtual std::string ToXMLString() const
Definition: Plane.cxx:65
std::vector< double > EndPoint2
Definition: Plane.h:34
std::vector< double > EndPoint1
Definition: Plane.h:33
std::vector< double > GetNormal()
Definition: Plane.cxx:36
std::vector< double > ProjectVector(std::vector< double > vector)
Definition: Plane.cxx:45
~Plane()
Definition: Plane.cxx:28