Warning, /education/marble/src/bindings/python/sip/MarbleGraphicsItem.sip is written in an unsupported language. File is not indexed.
0001 // 0002 // Copyright 2009 Simon Edwards <simon@simonzone.com> 0003 0004 // Generated by twine 0005 0006 // This file is part of PyKDE4. 0007 0008 // PyKDE4 is free software; you can redistribute it and/or modify 0009 // it under the terms of the GNU Lesser General Public License as 0010 // published by the Free Software Foundation; either version 2.1 of 0011 // the License, or (at your option) any later version. 0012 0013 // PyKDE4 is distributed in the hope that it will be useful, 0014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 0015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 0016 // GNU General Public License for more details. 0017 0018 // You should have received a copy of the GNU General Public License 0019 // along with this program. If not, see <http://www.gnu.org/licenses/>. 0020 0021 namespace Marble 0022 { 0023 0024 class MarbleGraphicsItem /Abstract/ 0025 { 0026 %TypeHeaderCode 0027 #include <MarbleGraphicsItem.h> 0028 %End 0029 0030 0031 public: 0032 enum CacheMode 0033 { 0034 NoCache, 0035 ItemCoordinateCache, 0036 DeviceCoordinateCache 0037 }; 0038 0039 //ig MarbleGraphicsItem (MarbleGraphicsItemPrivate* d_ptr); 0040 QSizeF size () const; 0041 Marble::MarbleGraphicsItem::CacheMode cacheMode () const; 0042 void setCacheMode (Marble::MarbleGraphicsItem::CacheMode mode); 0043 0044 protected: 0045 virtual bool eventFilter (QObject* object, QEvent* e); 0046 void update (); 0047 virtual void paint (QPainter* painter); 0048 0049 public: 0050 virtual ~MarbleGraphicsItem (); 0051 bool contains (const QPointF& point) const; 0052 Marble::AbstractMarbleGraphicsLayout* layout () const; 0053 void setLayout (Marble::AbstractMarbleGraphicsLayout* layout); 0054 bool visible () const; 0055 void setVisible (bool visible); 0056 void hide (); 0057 void show (); 0058 void setSize (const QSizeF& size); 0059 virtual QSizeF contentSize () const; 0060 virtual void setContentSize (const QSizeF& size); 0061 virtual QRectF contentRect () const; 0062 private: 0063 //force 0064 MarbleGraphicsItem (const Marble::MarbleGraphicsItem& other); 0065 0066 //end 0067 %ConvertToSubClassCode 0068 // CTSCC for subclasses of 'MarbleGraphicsItem' 0069 sipType = NULL; 0070 0071 if (dynamic_cast<Marble::BillboardGraphicsItem*>(sipCpp)) 0072 sipType = sipType_Marble_BillboardGraphicsItem; 0073 else if (dynamic_cast<Marble::ScreenGraphicsItem*>(sipCpp)) 0074 { 0075 sipType = sipType_Marble_ScreenGraphicsItem; 0076 if (dynamic_cast<Marble::FrameGraphicsItem*>(sipCpp)) 0077 { 0078 sipType = sipType_Marble_FrameGraphicsItem; 0079 if (dynamic_cast<Marble::LabelGraphicsItem*>(sipCpp)) 0080 sipType = sipType_Marble_LabelGraphicsItem; 0081 } 0082 else if (dynamic_cast<Marble::WidgetGraphicsItem*>(sipCpp)) 0083 sipType = sipType_Marble_WidgetGraphicsItem; 0084 } 0085 %End 0086 public: 0087 bool paintEvent (QPainter* painter, const Marble::ViewportParams* viewport); 0088 virtual void setProjection (const Marble::ViewportParams* viewport); 0089 }; 0090 // MarbleGraphicsItem 0091 0092 }; 0093 // Marble 0094 0095 0096 %ModuleHeaderCode 0097 //ctscc 0098 #include <BillboardGraphicsItem.h> 0099 #include <FrameGraphicsItem.h> 0100 #include <LabelGraphicsItem.h> 0101 #include <MarbleGraphicsItem.h> 0102 #include <ScreenGraphicsItem.h> 0103 #include <WidgetGraphicsItem.h> 0104 %End