// $Revision: 1.2 $ // HighlightFeedbackStyle.C // Copyright (C) 1994, 1995 Taligent, Inc. All rights reserved. #include "HighlightFeedbackStyle.h" #ifndef Taligent_BASEGEOMETRY #include #endif #ifndef Taligent_RGBCOLOR #include #endif #ifndef Taligent_BUNDLES #include #endif #ifndef Taligent_DELETERFOR #include #endif #ifndef Taligent_GRAPHICS #include #endif #ifndef Taligent_RGBTRANSFERMODES #include #endif //-------------------------- Class THighlightFeedbackStyle ------------------- THighlightFeedbackStyle::THighlightFeedbackStyle() : TFeedbackStyle(), fColor(TRGBColor(.5, .5, 1)), fIntensity(0.5) { } THighlightFeedbackStyle::THighlightFeedbackStyle(const TRGBColor& color) : TFeedbackStyle(), fColor(color), fIntensity(0.5) { } THighlightFeedbackStyle::THighlightFeedbackStyle(const GIntensity& intensity) : TFeedbackStyle(), fColor(TRGBColor(.5, .5, 1)), fIntensity(intensity) { } THighlightFeedbackStyle::THighlightFeedbackStyle(const TRGBColor& color, const GIntensity& intensity) : TFeedbackStyle(), fColor(color), fIntensity(intensity) { } THighlightFeedbackStyle::~THighlightFeedbackStyle() { } MGraphic* THighlightFeedbackStyle::DoCreateFeedback(const TGArea& area) const { TDeleterFor bundle = new TGrafBundle( fColor, fColor); bundle->AdoptFillTransferMode(new TRGBBlendTransferMode(fIntensity)); return new TArea(area, bundle.OrphanObject()); }