Table of contents Index

Module gview

class GvAreaLayer(GvShapeLayer)
class GvAreaTool(GvTool)
class GvAreas(GvData)
class GvData(GtkData) # Base class for various raster and vector data containers.
class GvLayer(GvData) # Base class for display layers.
class GvLineLayer(GvShapeLayer)
class GvLineTool(GvTool)
class GvManager(GtkObject)
class GvNodeTool(GvTool)
class GvPointLayer(GvShapeLayer)
class GvPointTool(GvTool)
class GvPoints(GvData)
class GvPolylines(GvData)
class GvPqueryLayer(GvShapesLayer) # Point Query Layer
class GvRaster(GvData) # Raster data object
class GvRasterLayer(GvLayer)
class GvRoiTool(GvTool)
class GvSelectionTool(GvTool)
class GvShape
class GvShapeLayer(GvLayer) # Display layer of vector shape objects.
class GvShapes(GvData) # A GvData of points, lines and areas (GvShapes). 
class GvShapesLayer(GvShapeLayer) # Vector Display Layer
class GvTool(GtkObject)
class GvToolbox(GvTool)
class GvTrackTool(GvTool)
class GvViewArea(GtkDrawingArea) # Gtk geographic view area.
class GvViewLink(GtkObject)
class GvZoompanTool(GvTool)
def can_undo() # Returns TRUE if undo system is enabled.
def find_gview()
def get_preference(name) # Fetch preference value
def gtk_object_deref_and_destroy(object)
def gtk_object_get_ref_count(object)
def load_preferences()
def py_object_get_ref_count(object)
def raster_cache_get_max()
def raster_cache_get_used()
def raster_cache_set_max(new_max)
def rgba_to_rgb(rgba)
def save_preferences()
def set_preference(name, value) # Set preference value
def texture_cache_get_max()
def texture_cache_get_used()
def texture_cache_set_max(new_max)
def undo_clear() # Destroy all saved undo steps.
def undo_close() # Temporarily disable capture of undo steps.
def undo_end_group(group) # Close off a multi operation undo group.
def undo_open() # Enable capture of undo steps.
def undo_pop() # Undo the most recent undo group.
def undo_register(data) # Register GvData for undo.
def undo_start_group() # Establish a multi operation undo group.
int GVSHAPE_AREA = 3
int GVSHAPE_LINE = 2
int GVSHAPE_POINT = 1
int MODE_2D = 0
int MODE_3D = 1
int RLM_AUTO = 0
int RLM_COMPLEX = 3
int RLM_RGBA = 2
int RLM_SINGLE = 1
int RL_ALPHA_ALWAYS = 2
int RL_ALPHA_EQUAL = 5
int RL_ALPHA_GEQUAL = 6
int RL_ALPHA_GREATER = 7
int RL_ALPHA_LEQUAL = 4
int RL_ALPHA_LESSER = 3
int RL_ALPHA_NEQUAL = 8
int RL_ALPHA_NEVER = 1
int RL_ALPHA_OFF = 0
int RL_BLEND_ADD = 3
int RL_BLEND_CUSTOM = 4
int RL_BLEND_FACT_DST_COLOR = 2
int RL_BLEND_FACT_MIN_DST_COLOR = 3
int RL_BLEND_FACT_MIN_SRC_ALPHA = 6
int RL_BLEND_FACT_MIN_SRC_COLOR = 4
int RL_BLEND_FACT_ONE = 1
int RL_BLEND_FACT_SRC_ALPHA = 5
int RL_BLEND_FACT_ZERO = 0
int RL_BLEND_FILTER = 1
int RL_BLEND_MULTIPLY = 2
int RL_BLEND_OFF = 0
int RL_FILTER_BILINEAR = 0
int RL_FILTER_NEAREST = 1
int RL_FILTER_TRILINEAR = 2
int RL_LUT_1D = 1
int RL_LUT_2D = 2
int RL_LUT_IMAGINARY = 4
int RL_LUT_MAGNITUDE = 0
int RL_LUT_NONE = 0
int RL_LUT_PHASE_ANGLE = 1
int RL_LUT_REAL = 3
int RL_LUT_SCALAR = 2
int RL_TEXCOORD_CLAMP = 0
int RL_TEXCOORD_REPEAT = 1
int RL_TEXTURE_MODULATE = 1
int RL_TEXTURE_REPLACE = 0
int SMAverage = 0
int SMSample = 1
string __file__ = './gview.py'
dictionary app_preferences = {}
string home_dir = '..'
instance manager = gview.GvManager instance
alias _gtk = gtk (type module)

get_preference(name)

Fetch preference value

This method will return a String value, or None if the preference is unknown.

name
the name of the preference to fetch.

set_preference(name, value)

Set preference value

This method will set the preference value in a global application list, which will be saved on application shutdown in the $HOME/.openev file, and restore on subsequent startups.

name
preference name (String)
value
preference value (String)

undo_end_group(group)

Close off a multi operation undo group.

group
the group id to be terminated. This should be the value returned by the corresponding undo_start_group().

undo_register(data)

Register GvData for undo.

data
GvData to be registered.

This call registers the passed GvData with the undo system. As long as it exists, and the undo system is enabled any changes to it will be recorded for undo. There is no way to unregister an individual GvData once registered.

undo_start_group()

Establish a multi operation undo group.

All undo operations saved to the undo stack after this call, and before the next undo_end_group() call will be considered to be a single group. A single call to undo_pop() will cause the entire group of undo steps to be applied.

This is normally used to group multiple underlying operations that should appear to be a single operation to the user.

Returns the undo group integer identifier. This should be kept and passed to the undo_end_group() method to terminate the grouping.


Valid HTML 4.0! Made with CSS