/usr/include/choreonoid-1.1/cnoid/src/Base/ScenePieces.h is in libcnoid-dev 1.1.0+dfsg-6.1+b4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 | /**
@author Shin'ichiro Nakaoka
*/
#ifndef CNOID_GUIBASE_SCENE_PIECES_H_INCLUDED
#define CNOID_GUIBASE_SCENE_PIECES_H_INCLUDED
#include <osg/Geode>
#include <osg/Geometry>
#include <osg/MatrixTransform>
#include <cnoid/EigenTypes>
#include "exportdecl.h"
namespace cnoid {
class CNOID_EXPORT SceneMarker : public osg::MatrixTransform
{
public:
virtual ~SceneMarker();
void setPosition(const Vector3& p);
};
class CNOID_EXPORT CrossMarker : public SceneMarker
{
public:
CrossMarker(const osg::Vec4& color, float size, float lineWidth = 1.0f);
void setSize(float size);
private:
osg::ref_ptr<osg::Geode> geode;
osg::Vec4 color;
float lineWidth;
};
class CNOID_EXPORT SphereMarker : public SceneMarker
{
public:
SphereMarker(float radius, const osg::Vec4& color);
void setRadius(float radius);
void setCross(const osg::Vec4& color, float size, float lineWidth = 1.0f);
private:
osg::ref_ptr<osg::Sphere> sphere;
osg::ref_ptr<deprecated_osg::Geometry> cross;
};
class CNOID_EXPORT BBMarker : public osg::Geode
{
public:
BBMarker(const osg::BoundingBox& bbox, const osg::Vec4& color, float width);
BBMarker(const osg::BoundingBox& bbox, const osg::Vec4& color);
private:
void create(const osg::BoundingBox& bbox, const osg::Vec4& color, float width);
void addMarker(double x, double y, double z, float width);
};
class CNOID_EXPORT AttitudeDragger : public osg::MatrixTransform
{
public:
AttitudeDragger();
void attachTo(osg::Group* parent);
inline void detach() { attachTo(0); }
inline float radius() { return radius_; }
private:
osg::ref_ptr<osg::Geode> draggers[3];
osg::Group* currentParent;
float radius_;
};
}
#endif
|