47 | | ~~};~~ |

48 | | |

49 | | ~~struct TransformCallback : public osg::Transform::ComputeTransformCallback~~ |

50 | | ~~{~~ |

51 | | ~~ /** Get the transformation matrix which moves from local coords to world coords.*/~~ |

52 | | ~~ virtual bool computeLocalToWorldMatrix(osg::Matrix& matrix,const osg::Transform* transform, osg::NodeVisitor* nv) const~~ |

53 | | ~~ {~~ |

54 | | ~~ std::cout<<"computeLocalToWorldMatrix - pre transform->computeLocalToWorldMatrix"<<std::endl;~~ |

55 | | ~~ bool result = transform->computeLocalToWorldMatrix(matrix,nv);~~ |

56 | | ~~ std::cout<<"computeLocalToWorldMatrix - post transform->computeLocalToWorldMatrix"<<std::endl;~~ |

57 | | ~~ return result;~~ |

58 | | ~~ }~~ |

59 | | |

60 | | ~~ /** Get the transformation matrix which moves from world coords to local coords.*/~~ |

61 | | ~~ virtual bool computeWorldToLocalMatrix(osg::Matrix& matrix,const osg::Transform* transform, osg::NodeVisitor* nv) const ~~ |

62 | | ~~ {~~ |

63 | | ~~ std::cout<<"computeWorldToLocalMatrix - pre transform->computeWorldToLocalMatrix"<<std::endl;~~ |

64 | | ~~ bool result = transform->computeWorldToLocalMatrix(matrix,nv);~~ |

65 | | ~~ std::cout<<"computeWorldToLocalMatrix - post transform->computeWorldToLocalMatrix"<<std::endl;~~ |

66 | | ~~ return result;~~ |

67 | | ~~ }~~ |