Uranium
Application Framework
 All Classes Namespaces Files Functions Variables Pages
UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation Class Reference

Operation subclass that will scale a node to fit within the bounds provided. More...

Inheritance diagram for UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation:
UM.Operations.Operation.Operation

Public Member Functions

def __init__
 Creates a new operation that scales a nodes to the bounds. More...
 
def undo
 Undoes the scale to bounds, restoring the old scale. More...
 
def redo
 Re-applies the scale to bounds after it has been undone. More...
 
- Public Member Functions inherited from UM.Operations.Operation.Operation
def __init__
 
def undo
 Undo the operation. More...
 
def redo
 Redo the operation. More...
 
def mergeWith
 Perform operation merging. More...
 
def push
 Push the operation onto the stack. More...
 

Detailed Description

Operation subclass that will scale a node to fit within the bounds provided.

Constructor & Destructor Documentation

def UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.__init__ (   self,
  node,
  bounds 
)

Creates a new operation that scales a nodes to the bounds.

Parameters
nodeThe node to scale to the bounds.
boundsThe bounding box to scale the node to.

Member Function Documentation

def UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.redo (   self)

Re-applies the scale to bounds after it has been undone.

def UM.Operations.ScaleToBoundsOperation.ScaleToBoundsOperation.undo (   self)

Undoes the scale to bounds, restoring the old scale.


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