|
GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
Class representing OpenGL texture. More...


Public Member Functions | |
| def | __init__ |
| Load image to texture. More... | |
| def | __del__ |
| Delete texture. More... | |
| def | Resize |
| Resize image to match 2^n. More... | |
| def | Load |
| Load image to texture. More... | |
| def | Draw |
| Draw texture as an image. More... | |
| def | SetBounds |
| Set Bounding Rectangle. More... | |
| def | HitTest |
| def | MoveTexture |
| Move texture on the screen. More... | |
| def | SetCoords |
| Set coordinates. More... | |
| def | GetId |
| Returns image id. More... | |
| def | SetActive |
| def | IsActive |
Data Fields | |
| path | |
| image | |
| width | |
| height | |
| id | |
| coords | |
| bounds | |
| active | |
| maxSize | |
| textureId | |
| def wxnviz.Texture.__init__ | ( | self, | |
| filepath, | |||
| overlayId, | |||
| coords | |||
| ) |
| def wxnviz.Texture.__del__ | ( | self | ) |
Delete texture.
Definition at line 1931 of file wxnviz.py.
References Nviz_del_texture(), wxnviz.Texture.path, and wxnviz.Texture.textureId.
| def wxnviz.Texture.Draw | ( | self | ) |
Draw texture as an image.
Definition at line 1978 of file wxnviz.py.
References wxnviz.Texture.coords, mapdisp.MapFrameBase.height, wxnviz.Nviz.height, histogram.HistogramFrame.height, render.Map.height, colorrules.ColorTable.height, model.ModelCondition.height, wxnviz.Texture.height, dialogs.ImageSizeDialog.height, Nviz_draw_image(), wxnviz.Texture.textureId, wxnviz.Nviz.width, render.Map.width, colorrules.ColorTable.width, model.ModelCondition.width, wxnviz.Texture.width, and dialogs.ImageSizeDialog.width.
Referenced by frame.PsMapBufferedWindow.DrawGraphics(), frame.PsMapBufferedWindow.OnDragging(), frame.PsMapBufferedWindow.OnLeftUp(), and frame.PsMapBufferedWindow.Zoom().
| def wxnviz.Texture.GetId | ( | self | ) |
Returns image id.
Definition at line 2004 of file wxnviz.py.
References render.Overlay.id, model.ModelObject.id, model.ModelAction.id, model.ModelItem.id, and wxnviz.Texture.id.
Referenced by tools.NvizToolWindow.UpdateScrolling().
| def wxnviz.Texture.HitTest | ( | self, | |
| x, | |||
| y, | |||
| radius | |||
| ) |
Definition at line 1987 of file wxnviz.py.
References wxnviz.Texture.bounds.
Referenced by layertree.LayerTree.OnEndDrag(), and layertree.LayerTree.OnMotion().
| def wxnviz.Texture.IsActive | ( | self | ) |
Definition at line 2011 of file wxnviz.py.
References render.Layer.active, and wxnviz.Texture.active.
| def wxnviz.Texture.Load | ( | self | ) |
Load image to texture.
Definition at line 1948 of file wxnviz.py.
References mapdisp.MapFrameBase.height, wxnviz.Nviz.height, histogram.HistogramFrame.height, render.Map.height, colorrules.ColorTable.height, model.ModelCondition.height, wxnviz.Texture.height, dialogs.ImageSizeDialog.height, Nviz_load_image(), tools.range, wxnviz.Nviz.width, render.Map.width, colorrules.ColorTable.width, model.ModelCondition.width, wxnviz.Texture.width, and dialogs.ImageSizeDialog.width.
| def wxnviz.Texture.MoveTexture | ( | self, | |
| dx, | |||
| dy | |||
| ) |
Move texture on the screen.
Definition at line 1992 of file wxnviz.py.
References wxnviz.Texture.coords.
Referenced by wxnviz.Texture.SetCoords().
| def wxnviz.Texture.Resize | ( | self | ) |
Resize image to match 2^n.
Definition at line 1937 of file wxnviz.py.
References mapdisp.MapFrameBase.height, wxnviz.Nviz.height, histogram.HistogramFrame.height, render.Map.height, colorrules.ColorTable.height, model.ModelCondition.height, wxnviz.Texture.height, dialogs.ImageSizeDialog.height, wxnviz.Nviz.width, render.Map.width, colorrules.ColorTable.width, model.ModelCondition.width, wxnviz.Texture.width, and dialogs.ImageSizeDialog.width.
| def wxnviz.Texture.SetActive | ( | self, | |
active = True |
|||
| ) |
Definition at line 2008 of file wxnviz.py.
References render.Layer.active, and wxnviz.Texture.active.
| def wxnviz.Texture.SetBounds | ( | self, | |
| rect | |||
| ) |
Set Bounding Rectangle.
Definition at line 1983 of file wxnviz.py.
References wxnviz.Texture.bounds.
| def wxnviz.Texture.SetCoords | ( | self, | |
| coords | |||
| ) |
Set coordinates.
Definition at line 1998 of file wxnviz.py.
References wxnviz.Texture.coords, and wxnviz.Texture.MoveTexture().
| wxnviz.Texture.active |
Definition at line 1912 of file wxnviz.py.
Referenced by wxnviz.Texture.IsActive(), and wxnviz.Texture.SetActive().
| wxnviz.Texture.bounds |
Definition at line 1911 of file wxnviz.py.
Referenced by wxnviz.Texture.HitTest(), and wxnviz.Texture.SetBounds().
| wxnviz.Texture.coords |
Definition at line 1910 of file wxnviz.py.
Referenced by wxnviz.Texture.Draw(), wxnviz.Texture.MoveTexture(), and wxnviz.Texture.SetCoords().
| wxnviz.Texture.height |
Definition at line 1908 of file wxnviz.py.
Referenced by wxnviz.Texture.Draw(), utils.Rect2D.GetHeight(), wxnviz.Texture.Load(), and wxnviz.Texture.Resize().
| wxnviz.Texture.id |
Definition at line 1909 of file wxnviz.py.
Referenced by dialogs.MapFramePanel.getId(), dialogs.RasterPanel.getId(), dialogs.VectorPanel.getId(), wxnviz.Texture.GetId(), dialogs.MapDialog.OnApply(), dialogs.RasterDialog.OnApply(), dialogs.MainVectorDialog.OnApply(), dialogs.RasterPanel.update(), dialogs.VectorPanel.update(), dialogs.MapinfoDialog.update(), dialogs.ScalebarDialog.update(), dialogs.TextDialog.update(), dialogs.ImageDialog.update(), and dialogs.PointDialog.update().
| wxnviz.Texture.path |
Definition at line 1905 of file wxnviz.py.
Referenced by wxnviz.Texture.__del__().
| wxnviz.Texture.textureId |
Definition at line 1927 of file wxnviz.py.
Referenced by wxnviz.Texture.__del__(), and wxnviz.Texture.Draw().
| wxnviz.Texture.width |
Definition at line 1907 of file wxnviz.py.
Referenced by wxnviz.Texture.Draw(), utils.Rect2D.GetWidth(), wxnviz.Texture.Load(), and wxnviz.Texture.Resize().