AdgRDim

AdgRDim — Radial dimensions

Synopsis

struct              AdgRDim;
struct              AdgRDimClass;
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);

Object Hierarchy

  GObject
   +----GInitiallyUnowned
         +----AdgEntity
               +----AdgDim
                     +----AdgRDim

Properties

  "value"                    gchar*                : Read / Write / Construct

Description

The AdgRDim entity represents a radial dimension.

Details

struct AdgRDim

struct AdgRDim;

All fields are private and should not be used directly. Use its public methods instead.

Since 1.0


struct AdgRDimClass

struct AdgRDimClass {
};

adg_rdim_new ()

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


adg_rdim_new_full ()

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 :

allow-none: center of the arc to quote

radius :

allow-none: where the quote must be applied on the arc

pos :

allow-none: position of the quote text

Returns :

a newly created quote

Since 1.0


adg_rdim_new_full_explicit ()

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.

center_x :

x coordinate of the center of the arc to quote

center_y :

y coordinate of the center of the arc to quote

radius_x :

x coordiante where the quote must be applied on the arc

radius_y :

y coordiante where the quote must be applied on the arc

pos_x :

x coordinate of the quote text

pos_y :

y coordinate of the quote text

Returns :

a newly created quote

Since 1.0


adg_rdim_new_full_from_model ()

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.

model :

transfer-none: the model from which the named pairs are taken

center :

allow-none: the center point of the arc to quote

radius :

allow-none: an arbitrary point on the arc

pos :

allow-none: the position reference

Returns :

the newly created radial dimension entity

Since 1.0

Property Details

The "value" property

  "value"                    gchar*                : Read / Write / Construct

The template string to be used for generating the set value of the quote.

Default value: "R <>"