⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 drawable.h

📁 下载来的一个看图软件的源代码
💻 H
📖 第 1 页 / 共 5 页
字号:
private:  double _x;  double _y;};// Text pointsizeclass MagickDLLDecl DrawablePointSize : public DrawableBase{public:  DrawablePointSize ( double pointSize_ )    : _pointSize(pointSize_)    { }  /*virtual*/ ~DrawablePointSize ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void pointSize( double pointSize_ )    {      _pointSize = pointSize_;    }  double pointSize( void ) const    {      return _pointSize;    }private:  double _pointSize;};// Polygon (Coordinate list must contain at least three members)class MagickDLLDecl DrawablePolygon : public DrawableBase{public:  DrawablePolygon ( const CoordinateList &coordinates_ );  DrawablePolygon ( const DrawablePolygon& original_ );  /*virtual*/ ~DrawablePolygon ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;private:  CoordinateList _coordinates;};// Polyline (Coordinate list must contain at least three members)class MagickDLLDecl DrawablePolyline : public DrawableBase{public:  DrawablePolyline ( const CoordinateList &coordinates_ );  DrawablePolyline ( const DrawablePolyline& original_ );  /*virtual*/ ~DrawablePolyline ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;private:  CoordinateList _coordinates;};// Pop Graphic Contextclass MagickDLLDecl DrawablePopGraphicContext : public DrawableBase{public:  DrawablePopGraphicContext ( void )    : _dummy(0)    {    }  /*virtual*/ ~DrawablePopGraphicContext ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;private:  int   _dummy;};// Push Graphic Contextclass MagickDLLDecl DrawablePushGraphicContext : public DrawableBase{public:  DrawablePushGraphicContext ( void )    : _dummy(0)    {    }  /*virtual*/ ~DrawablePushGraphicContext ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;private:  int   _dummy;};// Pop (terminate) Pattern definitionclass MagickDLLDecl DrawablePopPattern : public DrawableBase{public:  DrawablePopPattern ( void )    : _dummy(0)    {    }  /*virtual*/ ~DrawablePopPattern ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;private:  int   _dummy;};// Push (create) Pattern definitionclass MagickDLLDecl DrawablePushPattern : public DrawableBase{public:  DrawablePushPattern ( const std::string &id_, long x_, long y_,                        long width_, long height_ );  DrawablePushPattern ( const DrawablePushPattern& original_ );  /*virtual*/ ~DrawablePushPattern ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;private:  std::string         _id;  long		_x;  long		_y;  long		_width;  long		_height;};// Rectangleclass MagickDLLDecl DrawableRectangle : public DrawableBase{public:  DrawableRectangle ( double upperLeftX_, double upperLeftY_,                      double lowerRightX_, double lowerRightY_ )    : _upperLeftX(upperLeftX_),      _upperLeftY(upperLeftY_),      _lowerRightX(lowerRightX_),      _lowerRightY(lowerRightY_)    { }  /*virtual*/ ~DrawableRectangle ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void upperLeftX( double upperLeftX_ )    {      _upperLeftX = upperLeftX_;    }  double upperLeftX( void ) const    {      return _upperLeftX;    }  void upperLeftY( double upperLeftY_ )    {      _upperLeftY = upperLeftY_;    }  double upperLeftY( void ) const    {      return _upperLeftY;    }  void lowerRightX( double lowerRightX_ )    {      _lowerRightX = lowerRightX_;    }  double lowerRightX( void ) const    {      return _lowerRightX;    }  void lowerRightY( double lowerRightY_ )    {      _lowerRightY = lowerRightY_;    }  double lowerRightY( void ) const    {      return _lowerRightY;    }private:  double _upperLeftX;  double _upperLeftY;  double _lowerRightX;  double _lowerRightY;};// Apply Rotationclass MagickDLLDecl DrawableRotation : public DrawableBase{public:  DrawableRotation ( double angle_ )    : _angle( angle_ )    { }  /*virtual*/ ~DrawableRotation ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void angle( double angle_ )    {      _angle = angle_;    }  double angle( void ) const    {      return _angle;    }private:  double _angle;};// Round Rectangleclass MagickDLLDecl DrawableRoundRectangle : public DrawableBase{public:  DrawableRoundRectangle ( double centerX_, double centerY_,                           double width_, double hight_,                           double cornerWidth_, double cornerHeight_ )    : _centerX(centerX_),      _centerY(centerY_),      _width(width_),      _hight(hight_),      _cornerWidth(cornerWidth_),      _cornerHeight(cornerHeight_)    { }  /*virtual*/ ~DrawableRoundRectangle ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void centerX( double centerX_ )    {      _centerX = centerX_;    }  double centerX( void ) const    {      return _centerX;    }  void centerY( double centerY_ )    {      _centerY = centerY_;    }  double centerY( void ) const    {      return _centerY;    }  void width( double width_ )    {      _width = width_;    }  double width( void ) const    {      return _width;    }  void hight( double hight_ )    {      _hight = hight_;    }  double hight( void ) const    {      return _hight;    }  void cornerWidth( double cornerWidth_ )    {      _cornerWidth = cornerWidth_;    }  double cornerWidth( void ) const    {      return _cornerWidth;    }  void cornerHeight( double cornerHeight_ )    {      _cornerHeight = cornerHeight_;    }  double cornerHeight( void ) const    {      return _cornerHeight;    }private:  double _centerX;  double _centerY;  double _width;  double _hight;  double _cornerWidth;  double _cornerHeight;};// Apply Scalingclass MagickDLLDecl DrawableScaling : public DrawableBase{public:  DrawableScaling ( double x_, double y_ )    : _x(x_),      _y(y_)    { }  /*virtual*/ ~DrawableScaling ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void x( double x_ )    {      _x = x_;    }  double x( void ) const    {      return _x;    }  void y( double y_ )    {      _y = y_;    }  double y( void ) const    {      return _y;    }private:  double _x;  double _y;};// Apply Skew in X directionclass MagickDLLDecl DrawableSkewX : public DrawableBase{public:  DrawableSkewX ( double angle_ )    : _angle(angle_)    { }  /*virtual*/ ~DrawableSkewX ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void angle( double angle_ )    {      _angle = angle_;    }  double angle( void ) const    {      return _angle;    }private:  double _angle;};// Apply Skew in Y directionclass MagickDLLDecl DrawableSkewY : public DrawableBase{public:  DrawableSkewY ( double angle_ )    : _angle(angle_)    { }  /*virtual*/ ~DrawableSkewY ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void angle( double angle_ )    {      _angle = angle_;    }  double angle( void ) const    {      return _angle;    }private:  double _angle;};// Stroke dasharrayclass MagickDLLDecl DrawableDashArray : public DrawableBase{public:  DrawableDashArray( const double* dasharray_ );  DrawableDashArray( const unsigned int* dasharray_ ); // Deprecated  DrawableDashArray( const Magick::DrawableDashArray &original_ );  /*virtual*/ ~DrawableDashArray( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void dasharray( const double* dasharray_ );  void dasharray( const unsigned int* dasharray_ ); // Deprecated  const double* dasharray( void ) const    {      return _dasharray;    }  DrawableDashArray& operator=(const Magick::DrawableDashArray &original_);private:  size_t	_size;  double       *_dasharray;};// Stroke dashoffsetclass MagickDLLDecl DrawableDashOffset : public DrawableBase{public:  DrawableDashOffset ( const double offset_ )    : _offset(offset_)    { }  /*virtual*/ ~DrawableDashOffset ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void offset( const double offset_ )    {      _offset = offset_;    }  double offset( void ) const    {      return _offset;    }private:  double _offset;};// Stroke linecapclass MagickDLLDecl DrawableStrokeLineCap : public DrawableBase{public:  DrawableStrokeLineCap ( LineCap linecap_ )    : _linecap(linecap_)    { }  /*virtual*/ ~DrawableStrokeLineCap ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void linecap( LineCap linecap_ )    {      _linecap = linecap_;    }  LineCap linecap( void ) const    {      return _linecap;    }private:  LineCap _linecap;};// Stroke linejoinclass MagickDLLDecl DrawableStrokeLineJoin : public DrawableBase{public:  DrawableStrokeLineJoin ( LineJoin linejoin_ )    : _linejoin(linejoin_)    { }  /*virtual*/ ~DrawableStrokeLineJoin ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void linejoin( LineJoin linejoin_ )    {      _linejoin = linejoin_;    }  LineJoin linejoin( void ) const    {      return _linejoin;    }private:  LineJoin _linejoin;};// Stroke miterlimitclass MagickDLLDecl DrawableMiterLimit : public DrawableBase{public:  DrawableMiterLimit ( unsigned int miterlimit_ )    : _miterlimit(miterlimit_)    { }  /*virtual*/ ~DrawableMiterLimit ( void );  // Operator to invoke equivalent draw API call  /*virtual*/ void operator()( MagickLib::DrawContext context_ ) const;  // Return polymorphic copy of object  /*virtual*/ DrawableBase* copy() const;  void miterlimit( unsigned int miterlimit_ )    {      _miterlimit = miterlimit_;    }  unsigned int miterlimit( void ) const    {      return _miterlimit;    }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -