Panda3D
 All Classes Functions Variables Enumerations
pnmBrush.I
00001 // Filename: pnmBrush.I
00002 // Created by:  drose (01Feb07)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 
00016 ////////////////////////////////////////////////////////////////////
00017 //     Function: PNMBrush::Constructor
00018 //       Access: Protected
00019 //  Description: 
00020 ////////////////////////////////////////////////////////////////////
00021 INLINE PNMBrush::
00022 PNMBrush(double xc, double yc) : _xc(xc), _yc(yc) {
00023 }
00024 
00025 ////////////////////////////////////////////////////////////////////
00026 //     Function: PNMBrush::get_xc
00027 //       Access: Protected
00028 //  Description: Returns the coordinates of the brush's center
00029 //               pixel.  For a one-pixel brush, this will be (0.5,
00030 //               0.5); for a centered two-pixel brush, this will be
00031 //               (1.0, 1.0); for a centered three-pixel brush, this
00032 //               will be (1.5, 1.5); and so on.
00033 ////////////////////////////////////////////////////////////////////
00034 INLINE double PNMBrush::
00035 get_xc() const {
00036   return _xc;
00037 }
00038 
00039 ////////////////////////////////////////////////////////////////////
00040 //     Function: PNMBrush::get_xc
00041 //       Access: Protected
00042 //  Description: Returns the coordinates of the brush's center
00043 //               pixel.  For a one-pixel brush, this will be (0.5,
00044 //               0.5); for a centered two-pixel brush, this will be
00045 //               (1.0, 1.0); for a centered three-pixel brush, this
00046 //               will be (1.5, 1.5); and so on.
00047 ////////////////////////////////////////////////////////////////////
00048 INLINE double PNMBrush::
00049 get_yc() const {
00050   return _yc;
00051 }
 All Classes Functions Variables Enumerations