GLG Toolkit, C# Class Library  Version 4.1
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events
GlgPolygon Class Reference

Detailed Description

Polygon object

Inherits GlgObject.

Public Member Functions

 GlgPolygon (int size_p, GlgObject pt_array_p)
 
- Public Member Functions inherited from GlgObject
void AbortGISRequest (String res_name)
 
GlgObject AddAnnotation (String res_name, GlgObject annotation, double position_x, double position_y, bool add_box)
 
GlgObject AddAttachmentPoint (double dx, double dy, double dz)
 
void AddDataSampleNode (GlgDataSampleNode node, bool quick_mode)
 
void AddListener (GlgCallbackType type, Object callback)
 
bool AddObjectAt (Object obj, int index)
 
bool AddObjectToBottom (Object obj)
 
bool AddObjectToTop (Object obj)
 
GlgObject AddPlot (String res_name, GlgObject plot)
 
GlgObject AddTimeLine (String res_name, GlgObject time_line, double time_stamp)
 
void ChangeObject (String res_name)
 
bool ClearDataBuffer (String res_name)
 
GlgObject CloneObject (GlgCloneType clone_type)
 
bool ConstrainObject (GlgObject to_attribute)
 
bool ContainsObject (Object obj)
 
GlgObject CopyObject ()
 
GlgObject CreateAlarmList ()
 
GlgObject CreateChartSelection (GlgObject plot, double x, double y, double dx, double dy, bool screen_coord, bool include_invalid, bool x_priority)
 
Bitmap CreateImage (String res_name)
 
Bitmap CreateImageCustom (String res_name, System.Drawing.Rectangle image_area, int gap)
 
GlgObject CreateInversedMatrix ()
 
GlgObject CreatePointArray (GlgControlPointType type)
 
GlgObject CreateResourceList (bool list_named_res, bool list_def_attr, bool list_aliases)
 
GlgObject CreateTagList (bool unique_tag_sources)
 
String CreateTooltipString (double x, double y, double dx, double dy, String format)
 
bool DeleteAnnotation (String res_name, GlgObject annotation, double position_x, double position_y)
 
bool DeleteBottomObject ()
 
bool DeleteObject (Object obj)
 
bool DeleteObjectAt (int index)
 
bool DeletePlot (String res_name, GlgObject plot)
 
bool DeleteTags (GlgTagType tag_type_mask)
 
bool DeleteTimeLine (String res_name, GlgObject time_line, double time_stamp)
 
bool DeleteTopObject ()
 
int ExportStrings (String filename, GlgMediumType medium_type, char separator1, char separator2, Encoding encoding)
 
int ExportTags (String filename, GlgMediumType medium_type, char separator1, char separator2, Encoding encoding)
 
bool FindMatchingObjects (GlgFindMatchingObjectsData data)
 
bool FitObject (GlgCoordType coord_type, GlgCube box, bool keep_ratio)
 
void Flush (int size)
 
GlgObject GetAction (GlgActionType action_type, GlgTriggerType trigger_type, int button, GlgArmedStateType armed_state, GlgDoubleClickStateType double_click_state, String action, String subaction, bool enabled_only)
 
GlgObject GetAlarmObject (String alarm_label, bool single_alarm)
 
GlgCube GetBox ()
 
GlgMinMax GetChartDataExtent (String res_name, bool time, bool visible_only)
 
GlgMinMax GetDataExtent (String res_name, bool time)
 
GlgDataType GetDataType ()
 
GlgObject GetDrawingMatrix ()
 
GlgDouble GetDResource (String resource_name)
 
GlgDouble GetDTag (String tag_source)
 
Object GetElement (int index)
 
GlgGISRequestObserver GetGISRequestInfo (String res_name)
 
GlgPoint GetGResource (String resource_name)
 
GlgPoint GetGTag (String tag_source)
 
int GetImageHeight ()
 
int GetImageWidth ()
 
int GetIndex (Object obj)
 
GlgObject GetLegendSelection (double x, double y)
 
GlgMatrixData GetMatrixData (GlgMatrixData matrix_data)
 
GlgObject GetNamedObject (String name)
 
GlgObject GetNamedPlot (String res_name, String plot_name)
 
Object GetNativeComponent (String res_name, GlgComponentQueryType type)
 
int GetNumParents ()
 
String GetObjectName ()
 
GlgObjectType GetObjectType ()
 
GlgObject GetParent ()
 
GlgObject GetParentViewport (bool heavy_weight)
 
Object GetResource (String resource_name)
 
GlgObject GetResourceObject (String resource_name)
 
int GetSize ()
 
String GetSResource (String resource_name)
 
String GetSTag (String tag_source)
 
int GetStringIndex (String search_string)
 
GlgObject GetTagObject (String search_string, bool by_name, bool unique_tags, bool single_tag, GlgTagType tag_type_mask)
 
bool GISConvert (String res_name, GlgCoordType coord_type, bool coord_to_lat_lon, GlgPoint in_point, GlgPoint out_point)
 
GlgObject GISCreateSelection (String res_name, String layers, double x, double y, GlmLabelSelectionMode select_labels)
 
GlgDouble GISGetElevation (String res_name, String layer_name, double lon, double lat)
 
bool HasResourceObject (String resource_name)
 
bool HasTag (String tag_name, GlgTagType tag_type_mask)
 
bool HasTagName (String tag_name)
 
bool HasTagSource (String tag_source)
 
int ImportStrings (String filename, GlgMediumType medium_type, bool verbose, Encoding encoding)
 
int ImportTags (String filename, GlgMediumType medium_type, bool verbose, Encoding encoding)
 
void InitialDraw ()
 
bool InstallGISRequest (String res_name)
 
void Inverse ()
 
bool IsAt (GlgPositionType position)
 
bool IsDrawable ()
 
Object Iterate ()
 
Object IterateBack ()
 
bool LayoutObjects (GlgObject sel_elem, GlgLayoutType type, double distance, bool use_box, bool process_subobjects)
 
bool MoveObject (GlgCoordType coord_type, GlgPoint start_point, GlgPoint end_point)
 
bool MoveObjectBy (GlgCoordType coord_type, double x, double y, double z)
 
bool MoveObjectBy (GlgCoordType coord_type, GlgPoint point)
 
bool NativePrint (Graphics graphics)
 
bool PositionObject (GlgCoordType coord_type, GlgAnchoringType anchoring, GlgPoint position)
 
bool PositionObject (GlgCoordType coord_type, GlgAnchoringType anchoring, double x, double y, double z)
 
GlgDouble PositionToValue (String res_name, double x, double y, bool outside_x, bool outside_y)
 
bool Print (String file, double x, double y, double width, double height, bool portrait, bool stretch)
 
GlgObject QueryTags (GlgTagType tag_type_mask)
 
void ReleaseObject (GlgObject suspend_info)
 
bool ReorderElement (int current_index, int new_index)
 
bool RequestGISMap (String res_name, double extent_x, double extent_y, double center_x, double center_y, double angle, GlgProjectionType projection, String layers, GlgGISRequestFlags flags, GlgGISRequestObserver request_observer)
 
bool RequestGISZoom (String res_name, char type, double value, GlgGISRequestObserver request_observer)
 
bool Reset ()
 
void ResetHierarchy ()
 
bool RotateObject (GlgCoordType coord_type, GlgPoint center, double x, double y, double z)
 
bool SaveObject (String filename)
 
bool SaveObject (String filename, Encoding encoding)
 
bool SaveObject (Object medium, GlgMediumType medium_type)
 
bool SaveObject (Object medium, GlgMediumType medium_type, Encoding encoding)
 
bool ScaleObject (GlgCoordType coord_type, GlgPoint center, double x, double y, double z)
 
bool ScreenToWorld (bool inside_vp, GlgPoint in_point, GlgPoint out_point)
 
Object SendMessage (String res_name, String message, Object param1, Object param2, Object param3, Object param4)
 
bool SetBrowserSelection (String res_name, String selection, String filter)
 
bool SetChartFilter (String res_name, GlgChartFilter filter, Object client_data)
 
bool SetDResource (String resource_name, double value)
 
bool SetDResource (String resource_name, GlgDouble value)
 
bool SetDResource (String resource_name, double value, bool if_changed)
 
bool SetDResource (String resource_name, GlgDouble value, bool if_changed)
 
bool SetDTag (String tag_source, double value, bool if_changed)
 
bool SetDTag (String tag_source, GlgDouble value, bool if_changed)
 
bool SetElement (int index, Object new_object)
 
void SetEnd ()
 
void SetFocus (String res_name)
 
bool SetGResource (String resource_name, double g_value1, double g_value2, double g_value3)
 
bool SetGResource (String resource_name, double g_value1, double g_value2, double g_value3, bool if_changed)
 
bool SetGResource (String resource_name, GlgPoint g_value)
 
bool SetGResource (String resource_name, GlgPoint g_value, bool if_changed)
 
bool SetGTag (String tag_source, double g_value1, double g_value2, double g_value3, bool if_changed)
 
bool SetGTag (String tag_source, GlgPoint g_value, bool if_changed)
 
void SetImageSize (int width, int height)
 
bool SetLabelFormatter (String res_name, GlgLabelFormatter formatter)
 
bool SetLinkedAxis (String res_name, GlgObject axis_object, String axis_res_name)
 
void SetMatrixData (GlgMatrixData matrix_data)
 
bool SetResource (String resource_name, Object value)
 
bool SetResourceFromObject (String resource_name, GlgObject o_value)
 
bool SetResourceFromObject (String resource_name, GlgObject o_value, bool if_changed)
 
bool SetResourceObject (String resource_name, GlgObject value)
 
GlgGISRequestObserver SetScrollbarObserver (String res_name, GlgGISRequestObserver request_observer)
 
bool SetSResource (String resource_name, String s_value)
 
bool SetSResource (String resource_name, String s_value, bool if_changed)
 
bool SetSResourceFromD (String resource_name, String format, double d_value)
 
bool SetSResourceFromD (String resource_name, String format, double d_value, bool if_changed)
 
bool SetSResourceFromD (String resource_name, String format, GlgDouble d_value)
 
bool SetSResourceFromD (String resource_name, String format, GlgDouble d_value, bool if_changed)
 
bool SetSTag (String tag_source, String s_value, bool if_changed)
 
bool SetSTagFromD (String tag_source, String format, double d_value, bool if_changed)
 
bool SetSTagFromDObj (String tag_source, String format, GlgDouble d_value, bool if_changed)
 
void SetStart ()
 
void SetupHierarchy ()
 
bool SetXform (GlgObject xform)
 
bool SetZoom (String res_name, char type, double value)
 
bool SetZoomMode (String res_name, GlgObject zoom_object, String zoom_object_name, GlgZoomMode zoom_mode)
 
GlgObject SuspendObject ()
 
bool TransformObject (GlgObject xform, GlgCoordType coord_type, GlgObject parent)
 
void TransformPoint (GlgPoint in_point, GlgPoint out_point)
 
void TraverseObjects (GlgObjectActionInterface action)
 
bool UnconstrainObject ()
 
bool UpdateGlg ()
 
bool UpdateImmediately ()
 
bool WorldToScreen (bool inside_vp, GlgPoint in_point, GlgPoint out_point)
 

Additional Inherited Members

- Static Public Member Functions inherited from GlgObject
static void AddDataSample (GlgObject plot, GlgDataSample datasample)
 
static void Bell ()
 
static void CatchGlobalErrors (bool catch_all, bool exit)
 
static String ConcatResNames (String resource_name1, String resource_name2)
 
static GlgObject ConvertViewportType (GlgObject obj)
 
static GlgDataSample CreateDataSample (bool extended)
 
static GlgDataSampleNode CreateDataSampleNode (GlgObject plot, bool extended)
 
static String CreateIndexedName (String template_name, int resource_index)
 
static GlgObject CreateSelection (GlgObject top_vp, GlgCube rectangle, GlgObject selected_vp)
 
static GlgObject CreateSelection (MouseEventArgs mouse_event, int delta, GlgObject top_vp, GlgObject selected_vp)
 
static GlgObject CreateSelectionMessage (GlgObject top_vp, GlgCube rectangle, GlgObject selected_vp, GlgSelectionEventType selection_type, int button)
 
static GlgObject CreateSelectionNames (GlgObject top_vp, GlgCube rectangle, GlgObject selected_vp)
 
static GlgObject CreateSelectionNames (MouseEventArgs mouse_event, int delta, GlgObject top_vp, GlgObject selected_vp)
 
static bool EnableAttachmentPoints (bool state)
 
static bool EnableTimerXforms (bool state)
 
static void Error (GlgErrorType error_type, String message, Exception e)
 
static void FreeDataSampleNode (GlgObject plot, GlgDataSampleNode node)
 
static bool GetModifierState (GlgModifierType modifier)
 
static GlgObject GetSelectedPlot ()
 
static String GetStackTraceAsString ()
 
static String GetStackTraceAsString (Exception e)
 
static void GlmConvert (GlgProjectionType projection, bool stretch, GlgCoordType coord_type, bool coord_to_lat_lon, GlgPoint center, GlgPoint extent, double angle, double min_x, double max_x, double min_y, double max_y, GlgPoint in_point, GlgPoint out_point)
 
static bool IHCallCurrIH (GlgCallEvent call_event)
 
static bool IHCallCurrIHWithModifToken (GlgCallEvent call_event, int token)
 
static bool IHCallCurrIHWithToken (int token)
 
static void IHCallPrevIHWithModifToken (GlgCallEvent call_event, int token)
 
static void IHCallPrevIHWithToken (int token)
 
static void IHChangeBParameter (GlgObject ih, String name, bool value)
 
static void IHChangeDParameter (GlgObject ih, String name, double value)
 
static void IHChangeIParameter (GlgObject ih, String name, int value)
 
static void IHChangeNParameter (GlgObject ih, String name, Object value)
 
static void IHChangeOParameter (GlgObject ih, String name, GlgObject value)
 
static void IHChangeSParameter (GlgObject ih, String name, String value)
 
static bool IHGetBParameter (GlgObject ih, String name)
 
static GlgObject IHGetCurrIH ()
 
static double IHGetDParameter (GlgObject ih, String name)
 
static GlgIHHandlerInterface IHGetHandlerInterface (GlgObject ih)
 
static int IHGetIParameter (GlgObject ih, String name)
 
static Object IHGetNParameter (GlgObject ih, String name)
 
static GlgObject IHGetOParameter (GlgObject ih, String name)
 
static bool IHGetOptBParameter (GlgObject ih, String name, bool default_value)
 
static double IHGetOptDParameter (GlgObject ih, String name, double default_value)
 
static int IHGetOptIParameter (GlgObject ih, String name, int default_value)
 
static Object IHGetOptNParameter (GlgObject ih, String name, Object default_value)
 
static GlgObject IHGetOptOParameter (GlgObject ih, String name, GlgObject default_value)
 
static String IHGetOptSParameter (GlgObject ih, String name, String default_value)
 
static GlgIHHandlerInterface IHGetPrevHandlerInterface ()
 
static GlgObject IHGetPrevIH ()
 
static String IHGetSParameter (GlgObject ih, String name)
 
static int IHGetToken (GlgCallEvent call_event)
 
static GlgCallEventType IHGetType (GlgCallEvent call_event)
 
static void IHInit ()
 
static GlgObject IHInstall (GlgIHHandlerInterface interface_handler)
 
static void IHPassToken (GlgIHHandlerInterface handler_interface, int token, bool uninstall)
 
static void IHResetup (GlgObject ih)
 
static void IHSetBParameter (GlgObject ih, String name, bool value)
 
static void IHSetDParameter (GlgObject ih, String name, double value)
 
static void IHSetIParameter (GlgObject ih, String name, int value)
 
static void IHSetNParameter (GlgObject ih, String name, Object value)
 
static void IHSetOParameter (GlgObject ih, String name, GlgObject value)
 
static void IHSetOParameterFromD (GlgObject ih, String name, double value)
 
static void IHSetOParameterFromG (GlgObject ih, String name, GlgPoint point)
 
static void IHSetOParameterFromG (GlgObject ih, String name, double value1, double value2, double value3)
 
static void IHSetSParameter (GlgObject ih, String name, String value)
 
static void IHStart ()
 
static void IHTerminate ()
 
static void IHUninstall ()
 
static void IHUninstallWithEvent (GlgCallEvent call_event)
 
static void IHUninstallWithToken (int token)
 
static void Init ()
 
static bool IsDemo ()
 
static GlgObject LoadObject (String filename, GlgMediumType medium_type)
 
static GlgObject LoadObject (String filename, GlgMediumType medium_type, Encoding encoding)
 
static GlgObject LoadObject (Object medium, GlgMediumType medium_type)
 
static GlgObject LoadObject (Object medium, GlgMediumType medium_type, Encoding encoding)
 
static GlgObject LoadWidget (String filename, GlgMediumType medium_type)
 
static GlgObject LoadWidget (String filename, GlgMediumType medium_type, Encoding encoding)
 
static GlgObject LoadWidget (GlgObject glg_object)
 
static String Printf (String format, double value)
 
static String Printf (String format, int value)
 
static String Printf (String format, String value)
 
static double Rand (double low, double high)
 
static bool RootToScreenCoord (GlgObject viewport, GlgPoint root_coord)
 
static GlgAlarmHandler SetAlarmHandler (GlgAlarmHandler alarm_handler)
 
static bool SetAttachmentMoveMode (bool state)
 
static void SetBrowserObject (GlgObject browser, GlgObject glg_object)
 
static bool SetEditMode (GlgObject viewport, String res_name, bool edit_mode)
 
static GlgErrorHandler SetErrorHandler (GlgErrorHandler new_handler)
 
static GlgTooltipFormatter SetTooltipFormatter (GlgTooltipFormatter formatter)
 
static bool Sleep (long millisec)
 
static void Terminate ()
 
static void ThrowExceptionOnError (bool user_error, bool internal_error)
 
static bool TraceObject (GlgObject object_cs, bool state, bool is_widget, GlgObject top_parent, GlgObjectActionInterface action)
 
static void TranslatePointOrigin (GlgObject from_viewport, GlgObject to_viewport, GlgPoint point)
 
- Public Attributes inherited from GlgObject
const int CHART_FILTER_VERSION = 2
 
const double COORD_MAPPING_ADJ = 0.5
 
const double EQUATOR_RADIUS = 6378136.0
 
const double GIS_OUTSIDE_VALUE = -2000.0
 
const int MAJOR_VERSION = 4
 
const int MINOR_VERSION = 1
 
- Static Public Attributes inherited from GlgObject
static GlgObject IH_CURR = null
 
static GlgObject IH_GLOBAL = null
 
static GlgObject IH_NEW = null
 

Constructor & Destructor Documentation

GlgPolygon ( int  size_p,
GlgObject  pt_array_p 
)

Constructor.

Parameters
size_pNumber of points.
pt_array_pReserved: use null.