From Maria Ten, "I divide the init method of the
geometrytechnique in submethods to made more easy the inheritance between the user and osg-class. This is a first step to add more functions in osgTerrain. Maybe the subdivision of the method have to be in the terraintechnique because is the base class of GeometryTechnique. If Robert or anyone think that this is better i change this class too."
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
#include <osg/Geometry>
|
||||
|
||||
#include <osgTerrain/TerrainTechnique>
|
||||
#include <osgTerrain/Locator>
|
||||
|
||||
namespace osgTerrain {
|
||||
|
||||
@@ -32,6 +33,20 @@ class OSGTERRAIN_EXPORT GeometryTechnique : public TerrainTechnique
|
||||
GeometryTechnique(const GeometryTechnique&,const osg::CopyOp& copyop=osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
virtual void init();
|
||||
|
||||
virtual Locator* computeMasterLocator();
|
||||
|
||||
virtual const osg::Vec3d computeCenterModel(Locator* masterLocator);
|
||||
|
||||
virtual void generateGeometry(Locator* masterLocator, const osg::Vec3d& centerModel);
|
||||
|
||||
virtual void applyColorLayers();
|
||||
|
||||
virtual void applyTransferFunctions();
|
||||
|
||||
virtual void applyTransparency();
|
||||
|
||||
virtual void smoothGeometry();
|
||||
|
||||
virtual void update(osgUtil::UpdateVisitor* nv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user