![]() |
![]() |
![]() |
adg-1 reference manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
#include <adg-1/adg.h> struct AdgRDim; struct AdgRDimClass; AdgRDim * adg_rdim_new (void
); AdgRDim * adg_rdim_new_full (const CpmlPair *center
,const CpmlPair *radius
,const CpmlPair *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
);
struct AdgRDim;
All fields are private and should not be used directly. Use its public methods instead.
Since 1.0
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 |
Since 1.0
AdgRDim * adg_rdim_new_full (const CpmlPair *center
,const CpmlPair *radius
,const CpmlPair *pos
);
Creates a new quote by specifying explicitely all the needed data to get a valid quote.
|
center of the arc to quote. [allow-none] |
|
where the quote must be applied on the arc. [allow-none] |
|
position of the quote text. [allow-none] |
Returns : |
a newly created quote |
Since 1.0
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 CpmlPair 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 |
Since 1.0
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. [transfer none] |
|
the center point of the arc to quote. [allow-none] |
|
an arbitrary point on the arc. [allow-none] |
|
the position reference. [allow-none] |
Returns : |
the newly created radial dimension entity |
Since 1.0