GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Dialog for setting image properties. More...
Public Member Functions | |
def | __init__ |
def | OnDirChanged |
Image directory changed. More... | |
def | OnPositionType |
def | OnImageSelectionChanged |
Image selected, show preview and size. More... | |
def | ScaleToPreview |
Scale image to preview size. More... | |
def | DrawWarningText |
Draw text on preview window. More... | |
def | DrawBitmap |
Draw bitmap, center it if smaller than preview size. More... | |
def | SetSizeInfoLabel |
Update image size label. More... | |
def | ClearPreview |
Clear preview window. More... | |
def | update |
def | updateDialog |
Update text coordinates, after moving. More... | |
Public Member Functions inherited from dialogs.PsmapDialog | |
def | __init__ |
def | AddUnits |
def | AddPosition |
def | AddExtendedPosition |
Add widgets for setting position relative to paper and to map. More... | |
def | AddFont |
Data Fields | |
objectType | |
imageObj | |
imageDict | |
id | |
mapId | |
imagePanelName | |
imagePanel | |
positionPanel | |
previewSize | |
Data Fields inherited from dialogs.PsmapDialog | |
apply | |
id | |
parent | |
instruction | |
objectType | |
unitConv | |
spinCtrlSize | |
gridBagSizerP | |
gridBagSizerM | |
Dialog for setting image properties.
It's base dialog for North Arrow dialog.
Definition at line 4055 of file psmap/dialogs.py.
def dialogs.ImageDialog.__init__ | ( | self, | |
parent, | |||
id, | |||
settings, | |||
imagePanelName = _("Image") |
|||
) |
Definition at line 4060 of file psmap/dialogs.py.
def dialogs.ImageDialog.ClearPreview | ( | self | ) |
Clear preview window.
Definition at line 4382 of file psmap/dialogs.py.
References dialogs.ImageDialog.previewSize.
def dialogs.ImageDialog.DrawBitmap | ( | self, | |
bitmap | |||
) |
Draw bitmap, center it if smaller than preview size.
Definition at line 4358 of file psmap/dialogs.py.
References dialogs.ImageDialog.previewSize.
Referenced by frame.PsMapBufferedWindow.Draw().
def dialogs.ImageDialog.DrawWarningText | ( | self, | |
warning | |||
) |
Draw text on preview window.
Definition at line 4344 of file psmap/dialogs.py.
References dialogs.ImageDialog.previewSize.
def dialogs.ImageDialog.OnDirChanged | ( | self, | |
event | |||
) |
Image directory changed.
Definition at line 4246 of file psmap/dialogs.py.
References widgets.GetValue(), dialogs.ImageDialog.imageDict, and dialogs.ImageDialog.OnImageSelectionChanged().
def dialogs.ImageDialog.OnImageSelectionChanged | ( | self, | |
event | |||
) |
Image selected, show preview and size.
Definition at line 4292 of file psmap/dialogs.py.
Referenced by dialogs.ImageDialog.OnDirChanged().
def dialogs.ImageDialog.OnPositionType | ( | self, | |
event | |||
) |
Definition at line 4273 of file psmap/dialogs.py.
References widgets.GetValue().
def dialogs.ImageDialog.ScaleToPreview | ( | self, | |
img | |||
) |
Scale image to preview size.
Definition at line 4330 of file psmap/dialogs.py.
References dialogs.ImageDialog.previewSize.
def dialogs.ImageDialog.SetSizeInfoLabel | ( | self, | |
image | |||
) |
Update image size label.
Definition at line 4375 of file psmap/dialogs.py.
def dialogs.ImageDialog.update | ( | self | ) |
Definition at line 4394 of file psmap/dialogs.py.
References dialogs.ImageDialog._newObject(), utils.BBoxAfterRotation(), widgets.GetValue(), dialogs.PsmapDialog.id, render.Overlay.id, model.ModelObject.id, model.ModelAction.id, model.ModelItem.id, wxnviz.Texture.id, dialogs.ImageDialog.imageDict, dialogs.PsmapDialog.instruction, dialogs.LegendDialog.mapId, dialogs.TextDialog.mapId, dialogs.ImageDialog.mapId, and utils.PaperMapCoordinates().
def dialogs.ImageDialog.updateDialog | ( | self | ) |
Update text coordinates, after moving.
Definition at line 4475 of file psmap/dialogs.py.
References dialogs.ImageDialog.imageDict, and widgets.SetValue().
dialogs.ImageDialog.id |
Definition at line 4069 of file psmap/dialogs.py.
dialogs.ImageDialog.imageDict |
Definition at line 4067 of file psmap/dialogs.py.
Referenced by dialogs.ImageDialog.OnDirChanged(), dialogs.ImageDialog.update(), and dialogs.ImageDialog.updateDialog().
dialogs.ImageDialog.imageObj |
Definition at line 4066 of file psmap/dialogs.py.
dialogs.ImageDialog.imagePanel |
Definition at line 4084 of file psmap/dialogs.py.
dialogs.ImageDialog.imagePanelName |
Definition at line 4083 of file psmap/dialogs.py.
dialogs.ImageDialog.mapId |
Definition at line 4078 of file psmap/dialogs.py.
Referenced by dialogs.ImageDialog.update(), and dialogs.PointDialog.update().
dialogs.ImageDialog.objectType |
Definition at line 4064 of file psmap/dialogs.py.
dialogs.ImageDialog.positionPanel |
Definition at line 4085 of file psmap/dialogs.py.
dialogs.ImageDialog.previewSize |
Definition at line 4139 of file psmap/dialogs.py.
Referenced by dialogs.ImageDialog.ClearPreview(), dialogs.ImageDialog.DrawBitmap(), dialogs.ImageDialog.DrawWarningText(), and dialogs.ImageDialog.ScaleToPreview().