implement mustExecute for Raytracing features
This commit is contained in:
@@ -52,6 +52,17 @@ LuxFeature::LuxFeature(void)
|
||||
ADD_PROPERTY(Transparency,(0));
|
||||
}
|
||||
|
||||
short LuxFeature::mustExecute() const
|
||||
{
|
||||
if (Source.isTouched())
|
||||
return 1;
|
||||
if (Color.isTouched())
|
||||
return 1;
|
||||
if (Transparency.isTouched())
|
||||
return 1;
|
||||
return RaySegment::mustExecute();
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *LuxFeature::execute(void)
|
||||
{
|
||||
std::stringstream result;
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
|
||||
/** @name methods override Feature */
|
||||
//@{
|
||||
short mustExecute() const;
|
||||
/// recalculate the Feature
|
||||
App::DocumentObjectExecReturn *execute(void);
|
||||
|
||||
|
||||
@@ -50,6 +50,17 @@ RayFeature::RayFeature(void)
|
||||
ADD_PROPERTY(Transparency,(0));
|
||||
}
|
||||
|
||||
short RayFeature::mustExecute() const
|
||||
{
|
||||
if (Source.isTouched())
|
||||
return 1;
|
||||
if (Color.isTouched())
|
||||
return 1;
|
||||
if (Transparency.isTouched())
|
||||
return 1;
|
||||
return RaySegment::mustExecute();
|
||||
}
|
||||
|
||||
App::DocumentObjectExecReturn *RayFeature::execute(void)
|
||||
{
|
||||
std::stringstream result;
|
||||
|
||||
@@ -53,6 +53,7 @@ public:
|
||||
|
||||
/** @name methods override Feature */
|
||||
//@{
|
||||
short mustExecute() const;
|
||||
/// recalculate the Feature
|
||||
App::DocumentObjectExecReturn *execute(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user