GRASS Programmer's Manual  6.4.4(2014)-r
wxnviz.ImageTexture Class Reference

Class representing OpenGL texture as an overlay image. More...

Inheritance diagram for wxnviz.ImageTexture:
Collaboration diagram for wxnviz.ImageTexture:

Public Member Functions

def __init__ (self, filepath, overlayId, coords, cmd)
 Load image to texture. More...
 
def GetCmd (self)
 Returns overlay command. More...
 
def Corresponds (self, item)
 
- Public Member Functions inherited from wxnviz.Texture
def __init__ (self, filepath, overlayId, coords)
 Load image to texture. More...
 
def __del__ (self)
 Delete texture. More...
 
def Resize (self)
 Resize image to match 2^n. More...
 
def Load (self)
 Load image to texture. More...
 
def Draw (self)
 Draw texture as an image. More...
 
def SetBounds (self, rect)
 Set Bounding Rectangle. More...
 
def HitTest (self, x, y, radius)
 
def MoveTexture (self, dx, dy)
 Move texture on the screen. More...
 
def SetCoords (self, coords)
 Set coordinates. More...
 
def GetId (self)
 Returns image id. More...
 
def SetActive
 
def IsActive (self)
 

Data Fields

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

Detailed Description

Class representing OpenGL texture as an overlay image.

Definition at line 2014 of file wxnviz.py.

Constructor & Destructor Documentation

def wxnviz.ImageTexture.__init__ (   self,
  filepath,
  overlayId,
  coords,
  cmd 
)

Load image to texture.

Parameters
filepathpath to image file
overlayIdid of overlay (1 for legend)
coordsimage coordinates
cmdd.legend command

Definition at line 2016 of file wxnviz.py.

Member Function Documentation

Field Documentation

wxnviz.ImageTexture.cmd

Definition at line 2026 of file wxnviz.py.

Referenced by wxnviz.ImageTexture.GetCmd().


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