Go to the documentation of this file.
77 if (segment != NULL) {
87 vector<Factory*>::const_iterator i =
factories_.begin();
91 if (socketEditPart != NULL) {
94 socketEditPart, segmentEditPart));
101 if (editPolicy != NULL) {
105 return segmentEditPart;
virtual EditPart * createEditPart(TTAMachine::MachinePart *component)
virtual EditPart * createConnection(EditPart *source, EditPart *target) const
virtual EditPolicy * createSegmentEditPolicy()
void installEditPolicy(EditPolicy *editpolicy)
void registerFactory(Factory *factory)
int connectionCount() const
void setModel(TTAMachine::MachinePart *model)
const Connection & connection(const Socket &socket) const
SegmentFactory(EditPolicyFactory &editPolicyFactory)
void setFigure(Figure *figure)
virtual ~SegmentFactory()
void addChild(EditPart *child)
EditPolicyFactory & editPolicyFactory_
Factory which creates edit policies for edit parts.
std::vector< Factory * > factories_
Registered factories.