Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeTextColor Class Reference

#include <SALOMEDS_AttributeTextColor.hxx>

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

List of all members.

Public Member Functions

 SALOMEDS_AttributeTextColor (SALOMEDSImpl_AttributeTextColor *theAttr)
 SALOMEDS_AttributeTextColor (SALOMEDS::AttributeTextColor_ptr theAttr)
 ~SALOMEDS_AttributeTextColor ()
virtual STextColor TextColor ()
virtual void SetTextColor (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_AttributeTextColor.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTextColor::SALOMEDS_AttributeTextColor ( SALOMEDSImpl_AttributeTextColor *  theAttr)

Definition at line 32 of file SALOMEDS_AttributeTextColor.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeTextColor::SALOMEDS_AttributeTextColor ( SALOMEDS::AttributeTextColor_ptr  theAttr)

Definition at line 36 of file SALOMEDS_AttributeTextColor.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 40 of file SALOMEDS_AttributeTextColor.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_AttributeTextColor.

Definition at line 63 of file SALOMEDS_AttributeTextColor.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_AttributeTextColor*>(_local_impl)->ChangeArray(aSeq);
  }
  else {
    SALOMEDS::Color aColor;
    aColor.R = value.R;
    aColor.G = value.G;
    aColor.B = value.B;
    SALOMEDS::AttributeTextColor::_narrow(_corba_impl)->SetTextColor(aColor);
  }
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTextColor.

Definition at line 44 of file SALOMEDS_AttributeTextColor.cxx.

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

Here is the call graph for this function:

Here is the caller 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: