/usr/include/BALL/VIEW/KERNEL/representation.iC is in libballview1.4-dev 1.4.3~beta1-3.
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 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | BALL_INLINE
const PreciseTime& Representation::getModelBuildTime() const
{
return model_build_time_;
}
BALL_INLINE
void Representation::setModelType(ModelType type)
{
model_type_ = type;
}
BALL_INLINE
ModelType Representation::getModelType() const
{
return model_type_;
}
BALL_INLINE
void Representation::setColoringMethod(ColoringMethod type)
{
coloring_method_= type;
}
BALL_INLINE
ColoringMethod Representation::getColoringMethod() const
{
return coloring_method_;
}
BALL_INLINE
void Representation::insert(GeometricObject& object)
{
geometric_objects_.push_back(&object);
}
BALL_INLINE
const ModelProcessor* Representation::getModelProcessor() const
{
return model_processor_;
}
BALL_INLINE
ModelProcessor* Representation::getModelProcessor()
{
return model_processor_;
}
BALL_INLINE
ColorProcessor* Representation::getColorProcessor()
{
return color_processor_;
}
BALL_INLINE
void Representation::setHidden(bool state)
{
hidden_ = state;
}
BALL_INLINE
bool Representation::isHidden() const
{
return hidden_;
}
BALL_INLINE
DrawingPrecision Representation::getDrawingPrecision() const
{
return drawing_precision_;
}
BALL_INLINE
float Representation::getSurfaceDrawingPrecision() const
{
return surface_drawing_precision_;
}
BALL_INLINE
void Representation::setDrawingMode(DrawingMode mode)
{
drawing_mode_ = mode;
}
BALL_INLINE
void Representation::setDrawingPrecision(DrawingPrecision precision)
{
drawing_precision_ = precision;
if (model_processor_ != 0)
{
model_processor_->setDrawingPrecision(drawing_precision_);
}
}
BALL_INLINE
void Representation::setSurfaceDrawingPrecision(float precision)
{
if (precision < 0.1)
{
Log.error() << "Error: setting invalid surface drawing precision, using 0.1! " << std::endl;
precision = 0.1;
}
surface_drawing_precision_ = precision;
if (model_processor_ != 0) model_processor_->setSurfaceDrawingPrecision(surface_drawing_precision_);
}
BALL_INLINE
const GeometricObjectList& Representation::getGeometricObjects() const
{
if (model_processor_ == 0)
{
return geometric_objects_;
}
return model_processor_->getGeometricObjects();
}
BALL_INLINE
GeometricObjectList& Representation::getGeometricObjects()
{
if (model_processor_ == 0)
{
return geometric_objects_;
}
return model_processor_->getGeometricObjects();
}
BALL_INLINE
Size Representation::getTransparency() const
{
return transparency_;
}
BALL_INLINE
DrawingMode Representation::getDrawingMode() const
{
return drawing_mode_;
}
BALL_INLINE
void Representation::setNeedsUpdate(bool state)
{
needs_update_ = state;
}
|