GRASS Programmer's Manual  6.5.svn(2014)-r66266
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
wxnviz.TextTexture Class Reference

Class representing OpenGL texture as a text label. More...

Inheritance diagram for wxnviz.TextTexture:
Collaboration diagram for wxnviz.TextTexture:

Public Member Functions

def __init__
 Load image to texture. More...
 
def GetTextDict
 Returns text properties. More...
 
def Corresponds
 
- Public Member Functions inherited from wxnviz.Texture
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

 textDict
 
- Data Fields inherited from wxnviz.Texture
 path
 
 image
 
 width
 
 height
 
 id
 
 coords
 
 bounds
 
 active
 
 maxSize
 
 textureId
 

Detailed Description

Class representing OpenGL texture as a text label.

Definition at line 2035 of file wxnviz.py.

Constructor & Destructor Documentation

def wxnviz.TextTexture.__init__ (   self,
  filepath,
  overlayId,
  coords,
  textDict 
)

Load image to texture.

Parameters
filepathpath to image file
overlayIdid of overlay (101 and more for text)
coordstext coordinates
textDicttext properties

Definition at line 2037 of file wxnviz.py.

Member Function Documentation

def wxnviz.TextTexture.Corresponds (   self,
  item 
)

Definition at line 2054 of file wxnviz.py.

References wxnviz.TextTexture.GetTextDict().

def wxnviz.TextTexture.GetTextDict (   self)

Returns text properties.

Definition at line 2049 of file wxnviz.py.

References wxnviz.TextTexture.textDict.

Referenced by wxnviz.TextTexture.Corresponds().

Field Documentation

wxnviz.TextTexture.textDict

The documentation for this class was generated from the following file: