/**
* Construtor.
*/
-RS_AtomicEntity::RS_AtomicEntity(RS_EntityContainer * parent/*= NULL*/): RS_Entity(parent)
+AtomicEntity::AtomicEntity(EntityContainer * parent/*= NULL*/): Entity(parent)
{
}
/**
* Destrutor.
*/
-/*virtual*/ RS_AtomicEntity::~RS_AtomicEntity()
+/*virtual*/ AtomicEntity::~AtomicEntity()
{
}
* @return false because entities made from subclasses are
* atomic entities.
*/
-/*virtual*/ bool RS_AtomicEntity::isContainer() const
+/*virtual*/ bool AtomicEntity::isContainer() const
{
return false;
}
* @return true because entities made from subclasses are
* atomic entities.
*/
-/*virtual*/ bool RS_AtomicEntity::isAtomic() const
+/*virtual*/ bool AtomicEntity::isAtomic() const
{
return true;
}
/**
* @return Always 1 for atomic entities.
*/
-/*virtual*/ unsigned long int RS_AtomicEntity::count()
+/*virtual*/ unsigned long int AtomicEntity::count()
{
return 1;
}
/**
* @return Always 1 for atomic entities.
*/
-/*virtual*/ unsigned long int RS_AtomicEntity::countDeep()
+/*virtual*/ unsigned long int AtomicEntity::countDeep()
{
return 1;
}
* Implementation must return the endpoint of the entity or
* an invalid vector if the entity has no endpoint.
*/
-/*virtual*/ Vector RS_AtomicEntity::getEndpoint() const
+/*virtual*/ Vector AtomicEntity::getEndpoint() const
{
return Vector(false);
}
* Implementation must return the startpoint of the entity or
* an invalid vector if the entity has no startpoint.
*/
-/*virtual*/ Vector RS_AtomicEntity::getStartpoint() const
+/*virtual*/ Vector AtomicEntity::getStartpoint() const
{
return Vector(false);
}
/**
* Implementation must return the angle in which direction the entity starts.
*/
-/*virtual*/ double RS_AtomicEntity::getDirection1() const
+/*virtual*/ double AtomicEntity::getDirection1() const
{
return 0.0;
}
/**
* Implementation must return the angle in which direction the entity starts the opposite way.
*/
-/*virtual*/ double RS_AtomicEntity::getDirection2() const
+/*virtual*/ double AtomicEntity::getDirection2() const
{
return 0.0;
}
/**
* (De-)selects startpoint.
*/
-/*virtual*/ void RS_AtomicEntity::setStartpointSelected(bool select)
+/*virtual*/ void AtomicEntity::setStartpointSelected(bool select)
{
if (select)
setFlag(RS2::FlagSelected1);
/**
* (De-)selects endpoint.
*/
-/*virtual*/ void RS_AtomicEntity::setEndpointSelected(bool select)
+/*virtual*/ void AtomicEntity::setEndpointSelected(bool select)
{
if (select)
setFlag(RS2::FlagSelected2);
/**
* @return True if the entities startpoint is selected.
*/
-bool RS_AtomicEntity::isStartpointSelected() const
+bool AtomicEntity::isStartpointSelected() const
{
return getFlag(RS2::FlagSelected1);
}
/**
* @return True if the entities endpoint is selected.
*/
-bool RS_AtomicEntity::isEndpointSelected() const
+bool AtomicEntity::isEndpointSelected() const
{
return getFlag(RS2::FlagSelected2);
}
* Implementation must move the startpoint of the entity to
* the given position.
*/
-/*virtual*/ void RS_AtomicEntity::moveStartpoint(const Vector & /*pos*/)
+/*virtual*/ void AtomicEntity::moveStartpoint(const Vector & /*pos*/)
{
}
* Implementation must move the endpoint of the entity to
* the given position.
*/
-/*virtual*/ void RS_AtomicEntity::moveEndpoint(const Vector & /*pos*/)
+/*virtual*/ void AtomicEntity::moveEndpoint(const Vector & /*pos*/)
{
}
* Implementation must trim the startpoint of the entity to
* the given position.
*/
-/*virtual*/ void RS_AtomicEntity::trimStartpoint(const Vector & pos)
+/*virtual*/ void AtomicEntity::trimStartpoint(const Vector & pos)
{
moveStartpoint(pos);
}
* Implementation must trim the endpoint of the entity to
* the given position.
*/
-/*virtual*/ void RS_AtomicEntity::trimEndpoint(const Vector & pos)
+/*virtual*/ void AtomicEntity::trimEndpoint(const Vector & pos)
{
moveEndpoint(pos);
}
* trim entity and 'trimPoint' is the point to which the entity will
* be trimmed.
*/
-/*virtual*/ RS2::Ending RS_AtomicEntity::getTrimPoint(const Vector & /*coord*/, const Vector & /*trimPoint*/)
+/*virtual*/ RS2::Ending AtomicEntity::getTrimPoint(const Vector & /*coord*/, const Vector & /*trimPoint*/)
{
return RS2::EndingNone;
}
-/*virtual*/ void RS_AtomicEntity::reverse()
+/*virtual*/ void AtomicEntity::reverse()
{
}
-/*virtual*/ void RS_AtomicEntity::moveSelectedRef(const Vector & ref, const Vector & offset)
+/*virtual*/ void AtomicEntity::moveSelectedRef(const Vector & ref, const Vector & offset)
{
if (isSelected())
moveRef(ref, offset);