void REntityData::to2D() { RShape* shape = castToShape(); if (shape==NULL) { return; } shape->to2D(); }
/** * Stretches the end points of this entity that are inside area by offset. */ bool REntityData::stretch(const RPolyline& area, const RVector& offset) { // if this entity is based on a shape (point,line,arc,...), // transform using shape API: RShape* s = castToShape(); if (s==NULL) { return false; } return s->stretch(area, offset); }
bool REntityData::flipVertical() { // if this entity is based on a shape (point,line,arc,...), // transform using shape API: RShape* s = castToShape(); if (s==NULL) { return mirror(RLine(RVector(0,0), RVector(1,0))); } return s->flipVertical(); }
bool REntityData::mirror(const RLine& axis) { // if this entity is based on a shape (point,line,arc,...), // transform using shape API: RShape* s = castToShape(); if (s==NULL) { return false; } return s->mirror(axis); }
bool REntityData::scale(const RVector& scaleFactors, const RVector& center) { // if this entity is based on a shape (point,line,arc,...), // transform using shape API: RShape* s = castToShape(); if (s==NULL) { return false; } return s->scale(scaleFactors, center); }
bool REntityData::rotate(double rotation, const RVector& center) { // if this entity is based on a shape (point,line,arc,...), // transform using shape API: RShape* s = castToShape(); if (s==NULL) { return false; } return s->rotate(rotation, center); }