AdgRDim — Linear dimensions
AdgRDim; AdgRDim * adg_rdim_new (void); AdgRDim * adg_rdim_new_full (const AdgPair *center, const AdgPair *radius, const AdgPair *pos); AdgRDim * adg_rdim_new_full_explicit (gdouble center_x, gdouble center_y, gdouble radius_x, gdouble radius_y, gdouble pos_x, gdouble pos_y); AdgRDim * adg_rdim_new_full_from_model (AdgModel *model, const gchar *center, const gchar *radius, const gchar *pos);
typedef struct _AdgRDim AdgRDim;
All fields are private and should not be used directly. Use its public methods instead.
AdgRDim * adg_rdim_new (void);
Creates a new uninitialized radial dimension. To be useful, you need at least define the center of the arc to quote in "ref1", a point on the arc in "ref2" and the position of the quote in "pos" using any valid AdgDim method.
|
Returns : |
a newly created quote |
AdgRDim * adg_rdim_new_full (const AdgPair *center, const AdgPair *radius, const AdgPair *pos);
Creates a new quote by specifying explicitely all the needed data to get a valid quote.
|
|
center of the arc to quote |
|
|
where the quote must be applied on the arc |
|
|
position of the quote text |
|
Returns : |
a newly created quote |
AdgRDim * adg_rdim_new_full_explicit (gdouble center_x, gdouble center_y, gdouble radius_x, gdouble radius_y, gdouble pos_x, gdouble pos_y);
Does the same job of adg_rdim_full() but using specific coordinates instead of AdgPair structures. data to get a valid quote.
|
|
x coordinate of the center of the arc to quote |
|
|
y coordinate of the center of the arc to quote |
|
|
x coordiante where the quote must be applied on the arc |
|
|
y coordiante where the quote must be applied on the arc |
|
|
x coordinate of the quote text |
|
|
y coordinate of the quote text |
|
Returns : |
a newly created quote |
AdgRDim * adg_rdim_new_full_from_model (AdgModel *model, const gchar *center, const gchar *radius, const gchar *pos);
Creates a new radial dimension, specifing all the needed properties in
one shot and using named pairs from model.
|
|
the model from which the named pairs are taken |
|
|
the center point of the arc to quote |
|
|
an arbitrary point on the arc |
|
|
the position reference |
|
Returns : |
the newly created radial dimension entity |