Click or drag to resize
XDL

NXOverlayLayer Class

오버레이 레이어를 렌더링. 사용자는 구성요소를 사용하여 논리적으로 그리는 것을 구현 할 수 있다.
Inheritance Hierarchy
SystemObject
  Pixoneer.NXDL.NXPlanetNXOverlayLayer

Namespace:  Pixoneer.NXDL.NXPlanet
Assembly:  NXPlanet (in NXPlanet.dll) Version: 1.2.817.72
Syntax
C#
public class NXOverlayLayer : IDisposable

The NXOverlayLayer type exposes the following members.

Constructors
  NameDescription
Public methodNXOverlayLayer
NXOverlayLayer 객체를 생성하고 데이터 멤버를 초기화한다. 기본 생성자.
Top
Methods
  NameDescription
Public methodAddCompMan
composite 매니저를 추가한다.
Public methodAddComposite
composite를 추가한다.
Public methodGetCompMan
AddCompMan 함수를 통해 추가된 composite 메니저를 가져온다.
Public methodGetComposite
AddComposite 함수를 통해 추가된 composite를 가져온다.
Public methodMove(Int32, Int32)
composite를 이동한다.
Public methodMove(String, Int32)
composite를 이동한다.
Public methodMoveBottom(Int32)
하단으로 이동한다.
Public methodMoveBottom(String)
하단으로 이동한다.
Public methodMoveDown(Int32)
아래로 이동한다.
Public methodMoveDown(String)
아래로 이동한다.
Public methodMoveTop(Int32)
상단으로 이동한다.
Public methodMoveTop(String)
상단으로 이동한다.
Public methodMoveUp(Int32)
위로 이동한다.
Public methodMoveUp(String)
위로 이동한다.
Public methodRemove(Int32)
인덱스에 해당하는 composite 또는 composite 매니저를 삭제한다.
Public methodRemove(String)
이름에 해당하는 composite 또는 composite 매니저를 삭제한다.
Public methodSetAlpha
투명도를 설정한다.
Public methodSetTransparentValue
투명값(null 처리)을 설정한다.
Public methodUpdateSource
오버레이 레이어의 내용을 갱신하도록 한다.
Top
Remarks

Examples
This is example #1:
private void DisplayFile(XRSLoadFile xrsFile)
{
    XDMComposite newcomp;

    int numBand = xrsFile.NumBand;
    newcomp = new XDMComposite();
    newcomp.Name = xrsFile.FileName;

    if (numBand >= 3)
    {
        XDMBand bandL0 = xrsFile.GetBandAt(0);
        XDMBand bandL1 = xrsFile.GetBandAt(1);
        XDMBand bandL2 = xrsFile.GetBandAt(2);

        newcomp.Mode = eCompMode.RGB;
        newcomp.SetBand(ref bandL0, 2);
        newcomp.SetBand(ref bandL1, 1);
        newcomp.SetBand(ref bandL2, 0);
        for (int i = 0; i < 3; i++)
        {
            newcomp.SetCutType(eCompCutType.Ct95, i);                    //Cut Type Gaussian 95
            newcomp.SetStretchCoverage(eCompStretchCoverage.Band, i);   //XDMCOMPOSITE_SC_BAND
            newcomp.SetStretchType(eCompStretchType.Gaussian, i);       //XDMCOMPOSITE_ST_GAUSSIAN
            newcomp.SetCutMin(0.0, i);
            newcomp.SetCutMax(255.0, i);
        }
    }
    else
    {
        XDMBand bandL0 = xrsFile.GetBandAt(0);
        newcomp.Mode = eCompMode.Gray;
        newcomp.SetBand(ref bandL0, 0);

        newcomp.SetCutType(eCompCutType.Ct95, 0);
        newcomp.SetStretchCoverage(eCompStretchCoverage.Band, 0);
        newcomp.SetStretchType(eCompStretchType.Gaussian, 0);
    }

    // Get overlay layer. input layer id must be between 0~30.
    NXOverlayLayer layer = nxPlanetView1.GetPTMOverlayLayer(2);

    // just add to display composite on 3d.
    layer.AddComposite("com1",newcomp);
}
See Also