-// Copyright (C) 2014-2020 CEA/DEN, EDF R&D
+// Copyright (C) 2014-2022 CEA/DEN, EDF R&D
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
* Provides a shape that may be displayed in the viewer.
* Intermediate, light result that in many cases produces a result on the fly.
*/
-MODELAPI_EXPORT class ModelAPI_ResultConstruction : public ModelAPI_Result
+class ModelAPI_ResultConstruction : public ModelAPI_Result
{
public:
- MODELAPI_EXPORT ModelAPI_ResultConstruction();
-
/// Returns the group identifier of this result
MODELAPI_EXPORT virtual std::string groupName();
return RESULT_CONSTRUCTION_COLOR;
}
+ /// default color for a result construction
+ inline static const std::string& RESULT_COLOR_NAME()
+ {
+ static const std::string COLOR_NAME("result_construction_color");
+ return COLOR_NAME;
+ }
+
/// default deflection for a result construction
inline static const std::string DEFAULT_DEFLECTION()
{
virtual bool isInfinite() = 0;
/// Sets the flag that it is infinite
virtual void setInfinite(const bool theInfinite) = 0;
-
- /*************************************************************************/
- /// Changes for custom point color
-
- inline static const std::string& DEFAULT_COLOR_CONFIG_NAME()
- {
- static const std::string RESULT_CONSTRUCTION_COLOR_CONFIG_NAME("result_construction_color");
- return RESULT_CONSTRUCTION_COLOR_CONFIG_NAME;
- }
-
- inline void setColor(const std::string myColor, const std::string & myColorConfigName)
- {
- color = myColor;
- colorConfigName = myColorConfigName;
- }
-
- inline const std::string & getColor() const
- {
- return color;
- }
-
- inline const std::string & getColorConfigName() const
- {
- return colorConfigName;
- }
-
-private:
- std::string color;
- std::string colorConfigName;
-
-public:
-
- /// Specific properties for point
- class ModelApi_PointColor
- {
- public:
- /// default color for a point construction
- inline static const std::string& DEFAULT_COLOR()
- {
- static const std::string POINT_CONSTRUCTION_COLOR("85,85,0");
- return POINT_CONSTRUCTION_COLOR;
- }
-
- inline static const std::string COLOR_CONFIG_NAME()
- {
- static const std::string POINT_CONFIG_COLOR_NAME("result_point_color");
- return POINT_CONFIG_COLOR_NAME;
- }
- };
- /*************************************************************************/
};
//! Pointer on feature object