|
@@ -66,21 +66,29 @@ class DistributedSmoothNode(DistributedNode.DistributedNode,
|
|
|
self.DistributedSmoothNode_initialized = 1
|
|
self.DistributedSmoothNode_initialized = 1
|
|
|
DistributedNode.DistributedNode.__init__(self, cr)
|
|
DistributedNode.DistributedNode.__init__(self, cr)
|
|
|
DistributedSmoothNodeBase.DistributedSmoothNodeBase.__init__(self)
|
|
DistributedSmoothNodeBase.DistributedSmoothNodeBase.__init__(self)
|
|
|
- self.cnode.setRepository(cr, 0, 0)
|
|
|
|
|
-
|
|
|
|
|
- self.smoother = SmoothMover()
|
|
|
|
|
self.smoothStarted = 0
|
|
self.smoothStarted = 0
|
|
|
- self.lastSuggestResync = 0
|
|
|
|
|
- self._smoothWrtReparents = False
|
|
|
|
|
-
|
|
|
|
|
- def delete(self):
|
|
|
|
|
- DistributedSmoothNodeBase.DistributedSmoothNodeBase.delete(self)
|
|
|
|
|
- DistributedNode.DistributedNode.delete(self)
|
|
|
|
|
|
|
|
|
|
def generate(self):
|
|
def generate(self):
|
|
|
|
|
+ self.smoother = SmoothMover()
|
|
|
|
|
+ self.smoothStarted = 0
|
|
|
|
|
+ self.lastSuggestResync = 0
|
|
|
|
|
+ self._smoothWrtReparents = False
|
|
|
|
|
+
|
|
|
DistributedNode.DistributedNode.generate(self)
|
|
DistributedNode.DistributedNode.generate(self)
|
|
|
|
|
+ DistributedSmoothNodeBase.DistributedSmoothNodeBase.generate(self)
|
|
|
|
|
+ self.cnode.setRepository(self.cr, 0, 0)
|
|
|
|
|
+
|
|
|
self.activateSmoothing(GlobalSmoothing, GlobalPrediction)
|
|
self.activateSmoothing(GlobalSmoothing, GlobalPrediction)
|
|
|
|
|
|
|
|
|
|
+ def disable(self):
|
|
|
|
|
+ DistributedSmoothNodeBase.DistributedSmoothNodeBase.disable(self)
|
|
|
|
|
+ DistributedNode.DistributedNode.disable(self)
|
|
|
|
|
+ del self.smoother
|
|
|
|
|
+
|
|
|
|
|
+ def delete(self):
|
|
|
|
|
+ DistributedSmoothNodeBase.DistributedSmoothNodeBase.delete(self)
|
|
|
|
|
+ DistributedNode.DistributedNode.delete(self)
|
|
|
|
|
+
|
|
|
### Methods to handle computing and updating of the smoothed
|
|
### Methods to handle computing and updating of the smoothed
|
|
|
### position.
|
|
### position.
|
|
|
|
|
|