Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeTextHighlightColor Class Reference

#include <SALOMEDS_AttributeTextHighlightColor.hxx>

Inheritance diagram for SALOMEDS_AttributeTextHighlightColor:
Inheritance graph
[legend]
Collaboration diagram for SALOMEDS_AttributeTextHighlightColor:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SALOMEDS_AttributeTextHighlightColor (SALOMEDSImpl_AttributeTextHighlightColor *theAttr)
 SALOMEDS_AttributeTextHighlightColor (SALOMEDS::AttributeTextHighlightColor_ptr theAttr)
 ~SALOMEDS_AttributeTextHighlightColor ()
virtual STextColor TextHighlightColor ()
virtual void SetTextHighlightColor (STextColor value)
virtual void CheckLocked ()=0
virtual std::string Type ()=0
virtual std::string GetClassType ()=0
virtual _PTR (SObject) GetSObject()=0

Detailed Description

Definition at line 42 of file SALOMEDS_AttributeTextHighlightColor.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTextHighlightColor::SALOMEDS_AttributeTextHighlightColor ( SALOMEDSImpl_AttributeTextHighlightColor *  theAttr)

Definition at line 33 of file SALOMEDS_AttributeTextHighlightColor.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeTextHighlightColor::SALOMEDS_AttributeTextHighlightColor ( SALOMEDS::AttributeTextHighlightColor_ptr  theAttr)

Definition at line 38 of file SALOMEDS_AttributeTextHighlightColor.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 42 of file SALOMEDS_AttributeTextHighlightColor.cxx.

{}

Member Function Documentation

virtual SALOMEDSClient_GenericAttribute::_PTR ( SObject  ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

Here is the caller graph for this function:

virtual void SALOMEDSClient_GenericAttribute::CheckLocked ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

virtual std::string SALOMEDSClient_GenericAttribute::GetClassType ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

Implements SALOMEDSClient_AttributeTextHighlightColor.

Definition at line 66 of file SALOMEDS_AttributeTextHighlightColor.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    std::vector<double> aSeq;
    aSeq.push_back(value.R);
    aSeq.push_back(value.G);
    aSeq.push_back(value.B);
    dynamic_cast<SALOMEDSImpl_AttributeTextHighlightColor*>(_local_impl)->ChangeArray(aSeq);
  }
  else {
    SALOMEDS::Color aColor;
    aColor.R = value.R;
    aColor.G = value.G;
    aColor.B = value.B;
    SALOMEDS::AttributeTextHighlightColor::_narrow(_corba_impl)->SetTextHighlightColor(aColor);
  }
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTextHighlightColor.

Definition at line 46 of file SALOMEDS_AttributeTextHighlightColor.cxx.

{
  STextColor aColor;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    std::vector<double> aSeq = dynamic_cast<SALOMEDSImpl_AttributeTextHighlightColor*>(_local_impl)->TextHighlightColor();
    aColor.R = aSeq[0];
    aColor.G = aSeq[1];
    aColor.B = aSeq[2]; 
  }
  else {
    SALOMEDS::Color anImplColor =
      SALOMEDS::AttributeTextHighlightColor::_narrow(_corba_impl)->TextHighlightColor();
    aColor.R = anImplColor.R;
    aColor.G = anImplColor.G;
    aColor.B = anImplColor.B;
  }
  return aColor;
}

Here is the call graph for this function:

virtual std::string SALOMEDSClient_GenericAttribute::Type ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.


The documentation for this class was generated from the following files: