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

  position+=mouvement;

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