40 for (
int i=0; i<4; i++)
49 for (
int i=0; i<4; i++){
56 #ifdef G2O_HAVE_OPENGL 67 _planeWidth = _previousParams->makeProperty<
FloatProperty>(_typeName +
"::PLANE_WIDTH", 3);
68 _planeHeight = _previousParams->makeProperty<
FloatProperty>(_typeName +
"::PLANE_HEIGHT", 3);
79 if (
typeid(*element).name()!=_typeName)
82 refreshPropertyPtrs(params_);
83 if (! _previousParams)
86 if (_show && !_show->value())
93 glColor3f(
float(that->
color(0)),
float(that->
color(1)),
float(that->
color(2)));
95 glRotatef(
float(
RAD2DEG(azimuth)), 0.f, 0.f, 1.f);
96 glRotatef(
float(
RAD2DEG(elevation)), 0.f, -1.f, 0.f);
97 glTranslatef(
float(d), 0.f ,0.f);
99 if (_planeWidth && _planeHeight){
101 glNormal3f(-1.f, 0.f, 0.f);
102 glVertex3f(0.f, -_planeWidth->value(), -_planeHeight->value());
103 glVertex3f(0.f, _planeWidth->value(), -_planeHeight->value());
104 glVertex3f(0.f, _planeWidth->value(), _planeHeight->value());
105 glVertex3f(0.f, -_planeWidth->value(), _planeHeight->value());
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
static double elevation(const Eigen::Vector3d &v)
Abstract action that operates on a graph entity.
Eigen::Matrix< double, 4, 1, Eigen::ColMajor > Vector4D
static double azimuth(const Eigen::Vector3d &v)
virtual bool write(std::ostream &os) const
write the vertex to a stream
void setEstimate(const EstimateType &et)
set the estimate for the vertex also calls updateCache()
Eigen::Vector3d normal() const
const EstimateType & estimate() const
return the current estimate of the vertex
virtual bool refreshPropertyPtrs(HyperGraphElementAction::Parameters *params_)
Eigen::Vector4d toVector() const