/usr/include/tulip/Size.h is in libtulip-dev 3.1.2-2.3ubuntu3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | //-*-c++-*-
/**
Authors: David Auber, Patrick Mary, Morgan Mathiaut
from the LaBRI Visualization Team
Email : auber@tulip-software.org
Last modification : 13/03/2009
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
*/
#ifndef TULIP_SIZE_H
#define TULIP_SIZE_H
#include <tulip/Vector.h>
///
namespace tlp {
class TLP_SCOPE Size : public tlp::Vector<float,3> {
public:
inline Size(const float width=0,const float height=0,const float depth=0);
inline Size(const tlp::Vector<float,3> &);
inline void set(const float width=0,const float height=0,const float depth=0);
inline void set(const Size& size);
inline void setW(const float width);
inline void setH(const float height);
inline void setD(const float depth);
inline float getW() const;
inline float getH() const;
inline float getD() const;
inline void get(float &width, float &height, float &depth) const;
};
Size::Size(const tlp::Vector<float,3> &v) : tlp::Vector<float,3>(v) {}
Size::Size(const float width,const float height,const float depth) {
array[0]=width;
array[1]=height;
array[2]=depth;
}
void Size::set(const float width,const float height,const float depth) {
array[0]=width;
array[1]=height;
array[2]=depth;
}
void Size::set(const Size &size) { (*this)=size; }
float Size::getW() const {return array[0];}
float Size::getH() const {return array[1];}
float Size::getD() const {return array[2];}
void Size::get(float &width,float &height,float &depth) const {
width=array[0];
height=array[1];
depth=array[2];
}
void Size::setW(const float width) {array[0]=width;}
void Size::setH(const float height) {array[1]=height;}
void Size::setD(const float depth) {array[2]=depth;}
}
#endif
|