33 #ifdef G2O_HAVE_OPENGL 79 #ifdef G2O_HAVE_OPENGL 86 _pointSize = _previousParams->makeProperty<
FloatProperty>(_typeName +
"::POINT_SIZE", 1.);
96 if (
typeid(*element).name()!=_typeName)
99 refreshPropertyPtrs(params_);
100 if (! _previousParams)
103 if (_show && !_show->value())
108 glPushAttrib(GL_CURRENT_BIT | GL_BLEND);
110 glPointSize(_pointSize->value());
120 glColor4f(0.8f,0.5f,0.3f,0.3f);
122 glColor4f(0.8f,0.5f,0.3f,0.7f);
123 }
else if (vp1 || vp2){
124 glColor4f(0.8f,0.5f,0.3f,0.5f);
128 glColor4f(0.8f,0.5f,0.3f,0.7f);
129 l1 = t.dot(vp1->
estimate()-pmiddle);
132 glColor4f(0.8f,0.5f,0.3f,0.7f);
133 l2 = t.dot(vp2->estimate()-pmiddle);
138 glVertex3f((
float)p1.x(),p1.y(),0.f);
139 glVertex3f((
float)p2.x(),p2.y(),0.f);
Eigen::Matrix< double, 2, 1, Eigen::ColMajor > Vector2D
const OptimizableGraph * graph() const
Abstract action that operates on a graph entity.
Vertex * vertex(int id)
returns the vertex number id appropriately casted
virtual bool read(std::istream &is)
read the vertex from a stream, i.e., the internal state of the vertex
virtual bool write(std::ostream &os) const
write the vertex to a stream
const EstimateType & estimate() const
return the current estimate of the vertex
virtual bool refreshPropertyPtrs(HyperGraphElementAction::Parameters *params_)