7 #include "PlusConfigure.h" 10 #include "vtkObjectFactory.h" 21 this->Superclass::PrintSelf(os, indent.GetNextIndent());
22 for(
unsigned int i=0;
i < this->forceModel.size();
i++)
24 this->forceModel[
i]->PrintSelf(os, indent.GetNextIndent());
31 this->NumberOfFrames=0;
37 for(
unsigned int i=0;
i < this->forceModel.size();
i++)
39 forceModel[
i]->UnRegister(forceModel[
i]);
46 force->Register(force);
47 this->forceModel.push_back(force);
48 this->NumberOfFrames=forceModel.size();
57 this->forceModel.push_back(copy);
59 else if (
position < forceModel.size() )
61 this->forceModel.insert(forceModel.begin()+
position, force);
63 this->NumberOfFrames=forceModel.size();
75 return this->NumberOfFrames;
vtkStandardNewMacro(vtkPlusHapticForce) void vtkPlusHapticForce
void InsertForceModel(unsigned int position, vtkPlusForceFeedback *force)
void AddForceModel(vtkPlusForceFeedback *force)
vtkPlusForceFeedback * GetForceModel(int position)
virtual void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE