Example #1
0
//===========================================================
void GlBox::translate(const Coord &mouvement) {
  boundingBox.translate(mouvement);

  position+=mouvement;

  clearGenerated();
}
Example #2
0
//=====================================================
void GlRegularPolygon::computePolygon() {
  boundingBox = BoundingBox();
  boundingBox.expand(position+size/2.f);
  boundingBox.expand(position-size/2.f);

  setPoints(computeRegularPolygon(numberOfSides, position, size, startAngle));

  clearGenerated();
}
Example #3
0
//===========================================================
void GlBox::setPosition(const Coord& position) {
  this->position = position;

  boundingBox = BoundingBox();
  boundingBox.expand(position-size/2.f);
  boundingBox.expand(position+size/2.f);

  clearGenerated();
}
Example #4
0
//===========================================================
void GlBox::setSize(const Size& size) {
  this->size = size;

  boundingBox = BoundingBox();
  boundingBox.expand(position-size/2.f);
  boundingBox.expand(position+size/2.f);

  clearGenerated();
}
void siptlp_GlRect::sipProtectVirt_clearGenerated(bool sipSelfWasArg)
{
    (sipSelfWasArg ? tlp::GlAbstractPolygon::clearGenerated() : clearGenerated());
}
Example #6
0
void QSqlTableModelPrivate::clearEditBuffer()
{
    editBuffer = rec;
    clearGenerated(editBuffer);
}
Example #7
0
//=====================================================
void GlPolygon::resizeColors(const unsigned int nbColors) {
  assert(nbColors >= 1);
  points.resize(nbColors);
  clearGenerated();
}
Example #8
0
//=====================================================
void GlPolygon::resizePoints(const unsigned int nbPoints) {
  assert(nbPoints >= 3);
  points.resize(nbPoints);
  clearGenerated();
}
Example #9
0
void QSqlRelationalTableModelPrivate::clearEditBuffer()
{
    editBuffer = baseRec;
    clearGenerated(editBuffer);
}
Example #10
0
//===========================================================
GlBox::~GlBox() {
  clearGenerated();
}