19 #include <vtkProperty.h> 54 double colorCoefficient,
55 double specularCoefficient,
73 double colorCoefficient,
74 double specularCoefficient,
110 const Material &property,
double red,
double green,
double blue,
double opacity, std::string name)
122 const auto &otherinstance =
123 dynamic_cast<const Self &
>(other);
127 catch (
const std::bad_cast &)
137 const auto &otherProp(dynamic_cast<const Self &>(other));
141 catch (
const std::bad_cast &)
276 return VTK_WIREFRAME;
304 const auto *other =
dynamic_cast<const Self *
>(&property);
306 if (other ==
nullptr)
344 os <<
"Name: " <<
GetName() << std::endl;
345 os <<
"Color: " <<
GetColor() << std::endl;
350 os <<
"Opacity: " <<
GetOpacity() << std::endl;
355 os <<
"Interpolation: Flat" << std::endl;
358 os <<
"Interpolation: Gouraud" << std::endl;
361 os <<
"Interpolation: Phong" << std::endl;
367 os <<
"Representation: Points" << std::endl;
370 os <<
"Representation: Wireframe" << std::endl;
373 os <<
"Representation: Surface" << std::endl;
virtual void SetName(std::string _arg)
Class for storing surfaces (vtkPolyData).
double m_ColorCoefficient
void PrintSelf(std::ostream &os, itk::Indent) const override
virtual RepresentationType GetRepresentation() const
virtual Color GetColor() const
virtual void SetColor(Color color)
InterpolationType m_Interpolation
virtual void SetLineWidth(float lineWidth)
virtual Color GetSpecularColor() const
virtual void SetRepresentation(RepresentationType representation)
virtual void SetSpecularCoefficient(double specularCoefficient)
virtual double GetOpacity() const
double m_SpecularCoefficient
virtual bool Assignable(const Material &other) const
virtual double GetSpecularCoefficient() const
virtual InterpolationType GetInterpolation() const
virtual void Initialize(const Material &property)
virtual float GetLineWidth() const
virtual void InitializeStandardValues()
virtual int GetVtkInterpolation() const
virtual double GetSpecularPower() const
virtual void SetInterpolation(InterpolationType interpolation)
virtual bool operator==(const Material &property) const
virtual Material & operator=(const Material &other)
virtual void SetSpecularColor(Color color)
virtual void SetColorCoefficient(double coefficient)
virtual void SetSpecularPower(double specularPower)
RepresentationType m_Representation
itk::RGBPixel< double > Color
virtual int GetVtkRepresentation() const
virtual std::string GetName() const
virtual double GetColorCoefficient() const
virtual void SetOpacity(double opacity)