1 |
cochrane |
337 |
# Copyright (C) 2004-2005 Paul Cochrane |
2 |
|
|
# |
3 |
|
|
# This program is free software; you can redistribute it and/or |
4 |
|
|
# modify it under the terms of the GNU General Public License |
5 |
|
|
# as published by the Free Software Foundation; either version 2 |
6 |
|
|
# of the License, or (at your option) any later version. |
7 |
|
|
# |
8 |
|
|
# This program is distributed in the hope that it will be useful, |
9 |
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
10 |
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
11 |
|
|
# GNU General Public License for more details. |
12 |
|
|
# |
13 |
|
|
# You should have received a copy of the GNU General Public License |
14 |
|
|
# along with this program; if not, write to the Free Software |
15 |
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
16 |
|
|
|
17 |
|
|
# $Id: item.py,v 1.10 2005/03/07 07:45:48 paultcochrane Exp $ |
18 |
|
|
|
19 |
|
|
## @file item.py |
20 |
|
|
|
21 |
|
|
""" |
22 |
|
|
This is the file of the base class for items within a scene |
23 |
|
|
""" |
24 |
|
|
|
25 |
|
|
from pyvisi.common import debugMsg, overrideWarning |
26 |
|
|
|
27 |
|
|
__revision__ = '$Revision: 1.10 $' |
28 |
|
|
|
29 |
|
|
class Item(object): |
30 |
|
|
""" |
31 |
|
|
This is the base class for items within a scene |
32 |
|
|
""" |
33 |
|
|
|
34 |
|
|
def __init__(self): |
35 |
|
|
""" |
36 |
|
|
Initialisation |
37 |
|
|
""" |
38 |
|
|
object.__init__(self) |
39 |
|
|
debugMsg("Called Item.__init__()") |
40 |
|
|
|
41 |
|
|
def render(self): |
42 |
|
|
""" |
43 |
|
|
Render the object |
44 |
|
|
""" |
45 |
|
|
debugMsg("Called Item.render()") |
46 |
|
|
|
47 |
|
|
# print a warning if get to here |
48 |
|
|
overrideWarning("Item.render") |
49 |
|
|
|
50 |
|
|
return |
51 |
|
|
|
52 |
|
|
# vim: expandtab shiftwidth=4: |