13 #include <xercesc/parsers/XercesDOMParser.hpp>
17 #include <osg/Geometry>
19 #include <osg/ShapeDrawable>
22 #include <osgDB/WriteFile>
34 using namespace vrecko;
36 namespace AP_CableEditor {
38 #define CE_RADIUS_ADJUSTMENT 0.9
39 #define CE_RADIUS_RANGE_FROM 0.0
40 #define CE_RADIUS_RANGE_TO 2.0
47 virtual void update(
void);
50 bool isCable(
unsigned int pEoID);
53 osg::ref_ptr<osg::Vec3Array> createCircle(
unsigned int steps);
99 virtual bool initialize(XERCES_CPP_NAMESPACE_QUALIFIER
DOMNode *parameters = NULL);
101 virtual void fillDefaultInfo();
102 virtual bool activate();
103 virtual void deactivate();
104 virtual void menuItemClicked(
const char* itemID);
105 virtual void menuSliderChanged(
const char* sliderID,
float sliderPos);
111 Cable *getCableAbility(
unsigned int EoId,
bool notify =
false);
124 void saveCable( std::ofstream &outputFile,
Cable *cable );
127 void writeInfo( std::ofstream &outputFile );
130 virtual int processNotification(
BaseClass *sender,
unsigned long notificationType,
131 void *notificationData);