class TpsTrajectoryUniformStep: public TpsTrajectory { ... };
class TpsTrajectory { public: TpsTrajectory(TpsSimulationPlugin&, int=-1, int=-1); ... protected: ... TpsSimulationPlugin& _sim; };
Now the class TpsTrajectory contains a reference to a specific instance of a TpsSimulationPlugin. Any changes made to the simulation will apply to the trajectory.
class TpsTrajectory { public: TpsTrajectory(TpsSimulationPlugin&, int min=-1, int max=-1); void setSimulationPlugin(TpsSimulationPlugin&); void setMin(int); void setMax(int); ... protected: ... TpsSimulationPlugin& _sim; };
Constructors should take default arguments so that they don't become long and unweildly.
1.5.9