Synopsis

#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);

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 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 :

center of the arc to quote. [allow-none]

radius :

where the quote must be applied on the arc. [allow-none]

pos :

position of the quote text. [allow-none]

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 CpmlPair 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 :

the model from which the named pairs are taken. [transfer none]

center :

the center point of the arc to quote. [allow-none]

radius :

an arbitrary point on the arc. [allow-none]

pos :

the position reference. [allow-none]

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 <>"