示例#1
0
void ViewStrip::onRegen()
{
	///유닛의 Center Point 를 계산.
	_stripinfo->CalUnitCenterPoint();

    //Device Size 멤버 변수로 가져오기.
    _fdevice_size_x = _stripinfo->_fDeviceSizeX;
    _fdevice_size_y = _stripinfo->_fDeviceSizeY;

	///기존 레이저 지움.
	_layers.clearLayers();
    _ArrowLayers.clear();

    //기본 색과 선택시 색 지정.
    RGBA default_unit_sheet_color(_stripinfo->GetDefaultUnitSheetColor(), 150);
    RGBA default_unit_outline_color(_stripinfo->GetDefaultUnitOutlineColor(), 150);
    _pStripPainter->setSelectFillColr(RGBA(_stripinfo->GetSelectUnitSheetColor(), 200));
    _pStripPainter->setSelectLineColr(RGBA(_stripinfo->GetSelectUnitOutlineColor(), 200));


    ///Unit 그리기
    this->DrawUnits(default_unit_outline_color, default_unit_sheet_color);

    if(_stripinfo->GetProcessOrderVisible())
    {
        ///ProcessOrder Text
        this->DrawProcessOrder();
    }

    ///화살표들 그리기.
    this->DrawArrows();

    //Unit layer regen
    _layers.regen();

    for(INT32 i=0; i<_ArrowLayers.size(); i++)
    {
    	_ArrowLayers.at(i)->regen();
    }

    ///처음 시작시 화살표 안보이게 하기 위함.
    for(INT32 i=0; i<_ArrowLayers.size(); i++)
    {
        _ArrowLayers.at(i)->setVisible(FALSE);
    }
}
示例#2
0
VOID	ViewStrip::inspectorItemSelected(TCHAR* itemName)
{

    ///item 선택 초기화.
    for(INT32 i=0; i<_ArrowLayers.size(); i++)
    {
        _ArrowLayers.at(i)->setVisible(FALSE);
    }

    ///선택된 item 만 나오도록.
    for(INT32 i=0; i<_ArrowLayers.size(); i++)
    {
        TCHAR* name;
        name = _ArrowLayers.at(i)->getName();
        if(_tcscmp(name, itemName) == 0)
        {
        	_ArrowLayers.at(i)->setVisible(TRUE);
        }
    }

}
示例#3
0
int TupAnimationRenderer::Private::calculateTotalPhotograms(TupScene *scene)
{
    Layers layers = scene->layers();

    int total = 0;

    int totalLayers = layers.size();
    for (int i = 0; i < totalLayers; i++) {
         TupLayer *layer = layers.at(i);
         if (layer)
             total = qMax(total, layer->frames().count());
    }

    return total;
}