#include "FITKGraphActor2D.h" #include #include #include #include #include FITKGraphActor2D* FITKGraphActor2D::New() { // Return the instance. return new FITKGraphActor2D; } FITKGraphActor2D::FITKGraphActor2D() { // Nothing to do here. } FITKGraphActor2D::~FITKGraphActor2D() { // Clear the graph object's pointer. m_graphObj = nullptr; } void FITKGraphActor2D::setGraphObject(Comp::FITKGraphObjectVTK* obj) { m_graphObj = obj; } Comp::FITKGraphObjectVTK* FITKGraphActor2D::getGraphObject() { return m_graphObj; } void FITKGraphActor2D::setActorType(ActorType2D type) { m_actorType = type; } ActorType2D FITKGraphActor2D::getActorType() { return m_actorType; } void FITKGraphActor2D::update() { // If mapper is empty, return. vtkMapper2D* mapper = GetMapper(); if (!mapper) { return; } // Update the actor's mapper. mapper->Update(); } void FITKGraphActor2D::ShallowCopy(vtkProp* prop) { // Override shallow copy. // FITKGraphActor2D* f = FITKGraphActor2D::SafeDownCast(prop); this->vtkActor2D::ShallowCopy(prop); } //@} // vtkStandardNewMacro(vtkActorEx);