TankInstance.ViewProviderTank Class Reference

Public Member Functions

def attach (self, obj)
 
def getDefaultDisplayMode (self)
 
def getDisplayModes (self, obj)
 
def getIcon (self)
 
def onChanged (self, vp, prop)
 
def setDisplayMode (self, mode)
 
def updateData (self, fp, prop)
 

Member Function Documentation

◆ attach()

def TankInstance.ViewProviderTank.attach (   self,
  obj 
)
Setup the scene sub-graph of the view provider, this method is
mandatory.

◆ getDefaultDisplayMode()

def TankInstance.ViewProviderTank.getDefaultDisplayMode (   self)
Return the name of the default display mode. It must be defined in
getDisplayModes.

◆ getDisplayModes()

def TankInstance.ViewProviderTank.getDisplayModes (   self,
  obj 
)
Return a list of display modes.

Keyword arguments:
obj -- Object associated with the view provider.

◆ getIcon()

def TankInstance.ViewProviderTank.getIcon (   self)

◆ onChanged()

◆ setDisplayMode()

def TankInstance.ViewProviderTank.setDisplayMode (   self,
  mode 
)
Map the display mode defined in attach with those defined in
getDisplayModes. Since they have the same names nothing needs to be
done. This method is optional.

Keyword arguments:
mode -- Mode to be activated.

◆ updateData()

def TankInstance.ViewProviderTank.updateData (   self,
  fp,
  prop 
)

The documentation for this class was generated from the following file:
  • Sources/FreeCAD/src/Mod/Ship/TankInstance.py