sp-conn-end-pair.h revision 42b53baed61b6b06f33ecfa440a747382eb350df
#ifndef SEEN_SP_CONN_END_PAIR
#define SEEN_SP_CONN_END_PAIR
/*
* A class for handling connector endpoint movement and libavoid interaction.
*
* Authors:
* Peter Moulder <pmoulder@mail.csse.monash.edu.au>
*
* * Copyright (C) 2004 Monash University
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "forward.h"
#include "libnr/nr-point.h"
#include <sigc++/connection.h>
#include "libavoid/connector.h"
}
}
SPConnEndPair(SPPath *);
~SPConnEndPair();
void release();
gdouble getCurvature(void) const;
SPConnEnd** getConnEnds(void);
bool isOrthogonal(void) const;
void tellLibavoidNewEndpoints(const bool processTransaction = false);
bool reroutePathFromLibavoid(void);
void makePathInvalid(void);
void update(void);
bool isAutoRoutingConn(void);
void rerouteFromManipulation(void);
// libavoid's internal representation of the item.
int _connType;
// A sigc connection for transformed signal.
void storeIds(void);
};
// _connType options:
enum {
SP_CONNECTOR_NOAVOID, // Basic connector - a straight line.
SP_CONNECTOR_POLYLINE, // Object avoiding polyline.
SP_CONNECTOR_ORTHOGONAL // Object avoiding orthogonal polyline (only horizontal and verical segments).
};
#endif /* !SEEN_SP_CONN_END_PAIR */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :