Eidolon
Public Member Functions | Public Attributes | List of all members
ColorBar Class Reference

Inherits GraphicsObject.

Collaboration diagram for ColorBar:
Collaboration graph

Public Member Functions

def __init__ (self, colormap, x, y, width, height, numticks)
 
def drawBar (self)
 
def paint (self, p, args)
 
def boundingRect (self)
 
def setValRange (self, minval, maxval)
 
def setParentHeight (self, h)
 

Public Attributes

 colormap
 
 cx
 
 cy
 
 cwidth
 
 cheight
 
 minval
 
 maxval
 
 numticks
 
 pic
 

Detailed Description

Basic vertical color bar with labels ranging from a minimal to maximal value. The intent is for this to be embedded
in a scene with another graph and share its color graph and height.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  colormap,
  x,
  y,
  width,
  height,
  numticks 
)

Member Function Documentation

◆ boundingRect()

def boundingRect (   self)

◆ drawBar()

def drawBar (   self)
Redraw the bar into the self.pic value. This should be called after changing any stored value.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ paint()

def paint (   self,
  p,
  args 
)

◆ setParentHeight()

def setParentHeight (   self,
  h 
)
Set the height of the bar based on the containing parent's height `h'.
Here is the call graph for this function:

◆ setValRange()

def setValRange (   self,
  minval,
  maxval 
)
Set the bar's value range.
Here is the call graph for this function:

Member Data Documentation

◆ cheight

cheight

◆ colormap

colormap

◆ cwidth

cwidth

◆ cx

cx

◆ cy

cy

◆ maxval

maxval

◆ minval

minval

◆ numticks

numticks

◆ pic

pic

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