48 lines
938 B
C++
48 lines
938 B
C++
#ifndef IVE_HIEGHTFIELD
|
|
#define IVE_HIEGHTFIELD 1
|
|
|
|
#include <osg/Shape>
|
|
#include "ReadWrite.h"
|
|
|
|
namespace ive{
|
|
|
|
class Sphere : public osg::Sphere, public ReadWrite {
|
|
public:
|
|
void write(DataOutputStream* out);
|
|
void read(DataInputStream* in);
|
|
};
|
|
|
|
class Box : public osg::Box, public ReadWrite {
|
|
public:
|
|
void write(DataOutputStream* out);
|
|
void read(DataInputStream* in);
|
|
};
|
|
|
|
class Cone : public osg::Cone, public ReadWrite {
|
|
public:
|
|
void write(DataOutputStream* out);
|
|
void read(DataInputStream* in);
|
|
};
|
|
|
|
class Cylinder : public osg::Cylinder, public ReadWrite {
|
|
public:
|
|
void write(DataOutputStream* out);
|
|
void read(DataInputStream* in);
|
|
};
|
|
|
|
class Capsule : public osg::Capsule, public ReadWrite {
|
|
public:
|
|
void write(DataOutputStream* out);
|
|
void read(DataInputStream* in);
|
|
};
|
|
|
|
class HeightField : public osg::HeightField, public ReadWrite {
|
|
public:
|
|
void write(DataOutputStream* out);
|
|
void read(DataInputStream* in);
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|