Python LMF library
 All Classes Namespaces Files Functions Variables
picture.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 
3 """! @package resources
4 """
5 
6 from material import Material
7 
8 class Picture(Material):
9  """! Picture is a Material subclass representing a picture.
10  """
11  def __init__(self):
12  """! @brief Constructor.
13  Picture instances are owned by ?.
14  @return A Picture instance.
15  """
16  # Initialize Material attributes: 'mediaType', 'fileName' and 'author'
17  self.__new__()
18  self.filename = None
19  self.reference = None
20  self.width = None
21  self.height = None
22  self.format = None
23  ## Statement instances are owned by Picture
24  # There is zero to many Statement instances per Picture
25  self.statement = []
26 
27  def __del__(self):
28  """! @brief Destructor.
29  Release Statement instances.
30  """
31  for statement in self.statement:
32  del statement
33  del self.statement[:]
statement
Statement instances are owned by Picture There is zero to many Statement instances per Picture...
Definition: picture.py:25
Picture is a Material subclass representing a picture.
Definition: picture.py:8