7 #include "PlusConfigure.h" 18 Plane::Plane( std::vector<double> newBasePoint, std::vector<double> newEndPoint1, std::vector<double> newEndPoint2 )
55 for (
unsigned int i = 0;
i < vector.size();
i++ )
67 std::ostringstream xmlstring;
69 xmlstring <<
" <Plane";
70 xmlstring <<
" Name=\"" << this->
Name <<
"\"";
74 xmlstring <<
" />" << std::endl;
76 return xmlstring.str();
84 if ( strcmp( element->GetName(),
"Plane" ) != 0 )
89 this->
Name = std::string( element->GetAttribute(
"Name" ) );
virtual void FromXMLElement(vtkXMLDataElement *element)
static double Norm(std::vector< double > vector)
void Translate(std::vector< double > vector)
std::vector< double > BasePoint
virtual std::string ToXMLString() const
std::vector< double > EndPoint2
std::vector< double > EndPoint1
static double Dot(std::vector< double > v1, std::vector< double > v2)
static std::vector< double > StringToVector(std::string s, int size)
static std::string VectorToString(std::vector< double > vector)
std::vector< double > GetNormal()
static std::vector< double > Cross(std::vector< double > v1, std::vector< double > v2)
std::vector< double > ProjectVector(std::vector< double > vector)
static std::vector< double > Multiply(double c, std::vector< double > vector)
static std::vector< double > Subtract(std::vector< double > v1, std::vector< double > v2)