Changeset 4766 for trunk/gltext.py


Ignore:
Timestamp:
Jan 14, 2021 11:15:32 AM (9 months ago)
Author:
vondreele
Message:

modify atom labeling routine to allow specified offset as wx.RealPoint? - now only used for MapPeaks? plotting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gltext.py

    r3136 r4766  
    9999    #---Functions
    100100   
    101     def draw_text(self, position = wx.Point(0,0), scale = 1.0, rotation = 0):
    102         """
    103         position (wx.Point)    - x/y Position to draw in scene
     101    def draw_text(self, position = wx.RealPoint(0.,0.), scale = 1.0, rotation = 0):
     102        """
     103        position (wx.RealPoint)    - x/y Position to draw in scene
    104104        scale    (float)       - Scale
    105105        rotation (int)         - Rotation in degree
     
    121121        #Perform transformations
    122122        GL.glPushMatrix()
    123         GL.glTranslated(position.x, position.y, 0)
     123        GL.glTranslatef(position.x, position.y, 0)
    124124        GL.glRotate(-rotation, 0, 0, 1)
    125125        GL.glScaled(scale, scale, scale)
     
    415415    #---Functions
    416416       
    417     def draw_text(self, position = wx.Point(0,0), scale = 1.0, rotation = 0):
    418         """
    419         position (wx.Point)    - x/y Position to draw in scene
     417    def draw_text(self, position = wx.RealPoint(0.,0.), scale = 1.0, rotation = 0):
     418        """
     419        position (wx.RealPoint)    - x/y Position to draw in scene
    420420        scale    (float)       - Scale
    421421        rotation (int)         - Rotation in degree
Note: See TracChangeset for help on using the changeset viewer.